diff options
author | Anton Blanchard <anton@samba.org> | 2006-02-13 14:48:35 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-24 11:36:31 +1100 |
commit | cb2c9b2741346eb23b177187a51ff5abf08295bd (patch) | |
tree | 31433b46f96a00e22ca7e8402fd0bfe1fea3408d /arch/powerpc/platforms/iseries | |
parent | 47f78a49206b7f9b0d283ba46a2a5a6ee1796472 (diff) | |
download | kernel-crypto-cb2c9b2741346eb23b177187a51ff5abf08295bd.tar.gz kernel-crypto-cb2c9b2741346eb23b177187a51ff5abf08295bd.tar.xz kernel-crypto-cb2c9b2741346eb23b177187a51ff5abf08295bd.zip |
[PATCH] powerpc: Fix runlatch performance issues
The runlatch SPR can take a lot of time to write. My original runlatch
code would set it on every exception entry even though most of the time
this was not required. It would also continually set it in the idle
loop, which is an issue on an SMT capable processor.
Now we cache the runlatch value in a threadinfo bit, and only check for
it in decrementer and hardware interrupt exceptions as well as the idle
loop. Boot on POWER3, POWER5 and iseries, and compile tested on pmac32.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/iseries')
-rw-r--r-- | arch/powerpc/platforms/iseries/setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c index 3f8790146b0..3ecc4a652d8 100644 --- a/arch/powerpc/platforms/iseries/setup.c +++ b/arch/powerpc/platforms/iseries/setup.c @@ -648,6 +648,7 @@ static void yield_shared_processor(void) * here and let the timer_interrupt code sort out the actual time. */ get_lppaca()->int_dword.fields.decr_int = 1; + ppc64_runlatch_on(); process_iSeries_events(); } |