]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: Fix runlatch performance issues
authorAnton Blanchard <anton@samba.org>
Mon, 13 Feb 2006 03:48:35 +0000 (14:48 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 24 Feb 2006 00:36:31 +0000 (11:36 +1100)
commitc81f05027353ff9fb4760d9b6982e5689dfdcfeb
tree31433b46f96a00e22ca7e8402fd0bfe1fea3408d
parent61c12b70ccb9794541d882963363f5d3d3784ea2
[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>
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/process.c
arch/powerpc/platforms/iseries/setup.c
include/asm-powerpc/reg.h
include/asm-powerpc/thread_info.h