diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-08-28 00:25:04 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-08-28 00:25:04 -0400 |
commit | 77c0a700c1c292edafa11c1e52821ce4636f81b0 (patch) | |
tree | db788b5bb4cbbea98d23335dfaad7c8d6cb2070a /arch/powerpc/platforms/85xx/smp.c | |
parent | e5a6a1c9094839581242c678b11c93c294108696 (diff) |
powerpc: Properly start decrementer on BookE secondary CPUs
This moves the code to start the decrementer on 40x and BookE into
a separate function which is now called from time_init() and
secondary_time_init(), before the respective clock sources are
registered. We also remove the 85xx specific code for doing it
from the platform code.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx/smp.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/smp.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/85xx/smp.c b/arch/powerpc/platforms/85xx/smp.c index 9f526ba31c1e..94f901da4918 100644 --- a/arch/powerpc/platforms/85xx/smp.c +++ b/arch/powerpc/platforms/85xx/smp.c | |||
@@ -79,21 +79,9 @@ smp_85xx_kick_cpu(int nr) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | static void __init | 81 | static void __init |
82 | smp_85xx_basic_setup(int cpu_nr) | ||
83 | { | ||
84 | /* Clear any pending timer interrupts */ | ||
85 | mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS); | ||
86 | |||
87 | /* Enable decrementer interrupt */ | ||
88 | mtspr(SPRN_TCR, TCR_DIE); | ||
89 | } | ||
90 | |||
91 | static void __init | ||
92 | smp_85xx_setup_cpu(int cpu_nr) | 82 | smp_85xx_setup_cpu(int cpu_nr) |
93 | { | 83 | { |
94 | mpic_setup_this_cpu(); | 84 | mpic_setup_this_cpu(); |
95 | |||
96 | smp_85xx_basic_setup(cpu_nr); | ||
97 | } | 85 | } |
98 | 86 | ||
99 | struct smp_ops_t smp_85xx_ops = { | 87 | struct smp_ops_t smp_85xx_ops = { |