aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/smp.c
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2007-09-20 23:26:03 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-03 01:44:34 -0400
commitd831d0b83f205888f4be4dee0a074ad67ef809b3 (patch)
tree74a62c45f88d8c060c487777d27cb55768009113 /arch/powerpc/kernel/smp.c
parentab3e975e7c8b5efb452bdb0d06c1cb7399f83979 (diff)
[POWERPC] Implement clockevents driver for powerpc
This registers a clock event structure for the decrementer and turns on CONFIG_GENERIC_CLOCKEVENTS, which means that we now don't need most of timer_interrupt(), since the work is done in generic code. For secondary CPUs, their decrementer clockevent is registered when the CPU comes up (the generic code automatically removes the clockevent when the CPU goes down). Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/smp.c')
-rw-r--r--arch/powerpc/kernel/smp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index b24dcbaeeca..d30f08fa029 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -569,6 +569,8 @@ int __devinit start_secondary(void *unused)
569 if (system_state > SYSTEM_BOOTING) 569 if (system_state > SYSTEM_BOOTING)
570 snapshot_timebase(); 570 snapshot_timebase();
571 571
572 secondary_cpu_time_init();
573
572 spin_lock(&call_lock); 574 spin_lock(&call_lock);
573 cpu_set(cpu, cpu_online_map); 575 cpu_set(cpu, cpu_online_map);
574 spin_unlock(&call_lock); 576 spin_unlock(&call_lock);