diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-22 00:55:23 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-22 00:55:23 -0400 |
commit | a5b518ed314bfd25ea5e433ce09f8b27080023db (patch) | |
tree | 777d0f9202136dcff484121ad7673eb65d099567 /include | |
parent | e2b5530698cbe8148577b24097eaefcd835ac9ca (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 'include')
-rw-r--r-- | include/asm-powerpc/time.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-powerpc/time.h b/include/asm-powerpc/time.h index f8ef186c81e4..99bfe3281768 100644 --- a/include/asm-powerpc/time.h +++ b/include/asm-powerpc/time.h | |||
@@ -196,9 +196,11 @@ static inline unsigned long tb_ticks_since(unsigned long tstamp) | |||
196 | extern u64 mulhdu(u64, u64); | 196 | extern u64 mulhdu(u64, u64); |
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | unsigned mulhwu_scale_factor(unsigned, unsigned); | 199 | extern void smp_space_timers(unsigned int); |
200 | void div128_by_32(u64 dividend_high, u64 dividend_low, | 200 | |
201 | unsigned divisor, struct div_result *dr); | 201 | extern unsigned mulhwu_scale_factor(unsigned, unsigned); |
202 | extern void div128_by_32(u64 dividend_high, u64 dividend_low, | ||
203 | unsigned divisor, struct div_result *dr); | ||
202 | 204 | ||
203 | /* Used to store Processor Utilization register (purr) values */ | 205 | /* Used to store Processor Utilization register (purr) values */ |
204 | 206 | ||