aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-10-22 00:55:23 -0400
committerPaul Mackerras <paulus@samba.org>2005-10-22 00:55:23 -0400
commita5b518ed314bfd25ea5e433ce09f8b27080023db (patch)
tree777d0f9202136dcff484121ad7673eb65d099567 /arch/ppc64
parente2b5530698cbe8148577b24097eaefcd835ac9ca (diff)
ppc64/powerpc: Fix time initialization on SMP systems
This moves smp_space_timers from arch/ppc64/kernel/smp.c to arch/powerpc/kernel/time.c and makes it initialize last_jiffy[] instead of paca[].next_jiffy_update_tb, since last_jiffy[] is now what the time code uses. It also declares smp_space_timers in include/asm-powerpc/time.h and gets rid of an ifdef in div128_by_32. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64')
-rw-r--r--arch/ppc64/kernel/smp.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/ppc64/kernel/smp.c b/arch/ppc64/kernel/smp.c
index 192e3239fadc..017c12919832 100644
--- a/arch/ppc64/kernel/smp.c
+++ b/arch/ppc64/kernel/smp.c
@@ -105,21 +105,6 @@ void __devinit smp_generic_kick_cpu(int nr)
105 105
106#endif /* CONFIG_MPIC */ 106#endif /* CONFIG_MPIC */
107 107
108static void __init smp_space_timers(unsigned int max_cpus)
109{
110 int i;
111 unsigned long offset = tb_ticks_per_jiffy / max_cpus;
112 unsigned long previous_tb = paca[boot_cpuid].next_jiffy_update_tb;
113
114 for_each_cpu(i) {
115 if (i != boot_cpuid) {
116 paca[i].next_jiffy_update_tb =
117 previous_tb + offset;
118 previous_tb = paca[i].next_jiffy_update_tb;
119 }
120 }
121}
122
123void smp_message_recv(int msg, struct pt_regs *regs) 108void smp_message_recv(int msg, struct pt_regs *regs)
124{ 109{
125 switch(msg) { 110 switch(msg) {