]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Timer interrupt: use a struct for two per_cpu varables
authorMilton Miller <miltonm@bga.com>
Fri, 14 Dec 2007 04:52:15 +0000 (15:52 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:15:41 +0000 (16:15 +1100)
commit3f8681e3c8578a677680d3853c6d9a1743a0dd6c
treedab1e44a25802a2119e3ab1bdb855598640a1eda
parent52965803bb14c0372efc5dae909dcce41ecb7a0e
[POWERPC] Timer interrupt: use a struct for two per_cpu varables

timer_interrupt() was calculating per_cpu_offset several times, having to
start from the toc because of potential aliasing issues.

Placing both decrementer per_cpu varables in a struct and calculating
the address once with __get_cpu_var results in better code on both 32
and 64 bit.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c