diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-19 19:23:26 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-19 19:23:26 -0400 |
commit | f2783c15007468c14972e2617db51e9affc7fad9 (patch) | |
tree | 6c8f57ee8e5cdaeb810a3ccf7f697576a7df7615 /arch/ppc | |
parent | 03f88e9f7145b03fd0d855918d54a3bf5342ac5e (diff) |
powerpc: Merge time.c and asm/time.h.
We now use the merged time.c for both 32-bit and 64-bit compilation
with ARCH=powerpc, and for ARCH=ppc64, but not for ARCH=ppc32.
This removes setup_default_decr (folds its function into time_init)
and moves wakeup_decrementer into time.c. This also makes an
asm-powerpc/rtc.h.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/ppc/kernel/time.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/ppc/kernel/Makefile b/arch/ppc/kernel/Makefile index 5a742c7b0509..ccbc442c9ed3 100644 --- a/arch/ppc/kernel/Makefile +++ b/arch/ppc/kernel/Makefile | |||
@@ -37,7 +37,7 @@ endif | |||
37 | # These are here while we do the architecture merge | 37 | # These are here while we do the architecture merge |
38 | 38 | ||
39 | else | 39 | else |
40 | obj-y := irq.o idle.o time.o \ | 40 | obj-y := irq.o idle.o \ |
41 | align.o perfmon.o | 41 | align.o perfmon.o |
42 | obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o | 42 | obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o |
43 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o | 43 | obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o |
diff --git a/arch/ppc/kernel/time.c b/arch/ppc/kernel/time.c index 22d7fd1e0aea..76f44ce4772e 100644 --- a/arch/ppc/kernel/time.c +++ b/arch/ppc/kernel/time.c | |||
@@ -121,6 +121,15 @@ unsigned long profile_pc(struct pt_regs *regs) | |||
121 | EXPORT_SYMBOL(profile_pc); | 121 | EXPORT_SYMBOL(profile_pc); |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | void wakeup_decrementer(void) | ||
125 | { | ||
126 | set_dec(tb_ticks_per_jiffy); | ||
127 | /* No currently-supported powerbook has a 601, | ||
128 | * so use get_tbl, not native | ||
129 | */ | ||
130 | last_jiffy_stamp(0) = tb_last_stamp = get_tbl(); | ||
131 | } | ||
132 | |||
124 | /* | 133 | /* |
125 | * timer_interrupt - gets called when the decrementer overflows, | 134 | * timer_interrupt - gets called when the decrementer overflows, |
126 | * with interrupts disabled. | 135 | * with interrupts disabled. |