[POWERPC] Use __get_cpu_var in time.c
commit8b5621f183f7e56958b0a0aae689af5af2efeda7
authorMilton Miller <miltonm@bga.com>
Fri, 14 Dec 2007 04:52:10 +0000 (14 15:52 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:15:39 +0000 (20 16:15 +1100)
tree204cd5bc8d8bc2947d1de63d37b4d2837e1914df
parentc481887f2b74f87f714e2b76b8b834e57912bd0a
[POWERPC] Use __get_cpu_var in time.c

Use __get_cpu_var(x) instead of per_cpu(x, smp_processor_id()), as it
is optimized on ppc64 to access the current cpu's per-cpu offset directly;
it's local_paca.offset instead of TOC->paca[local_paca->processor_id].offset.

This is the trivial portion, two functions with one use each.

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