summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/setup_no.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2012-01-23 06:34:58 +0100
committerGreg Ungerer <gerg@uclinux.org>2012-03-05 00:43:04 +0100
commit35aefb2645d1ae7576699b2d7b66d6c9503113fc (patch)
treed2976ce7f95983751e42c33bcb61923a120aa072 /arch/m68k/kernel/setup_no.c
parentm68knommu: make persistent clock code consistent with m68k (diff)
downloadlinux-35aefb2645d1ae7576699b2d7b66d6c9503113fc.tar.xz
linux-35aefb2645d1ae7576699b2d7b66d6c9503113fc.zip
m68knommu: modify timer init code to make it consistent with m68k code
With a few small changes we can make the m68knommu timer init code the same as the m68k code. By using the mach_sched_init function pointer and reworking the current timer initializers to keep track of the common m68k timer_interrupt() handler we end up with almost identical code for m68knommu. This will allow us to more easily merge the mmu and non-mmu m68k time.c in future patches. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/kernel/setup_no.c')
-rw-r--r--arch/m68k/kernel/setup_no.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/kernel/setup_no.c b/arch/m68k/kernel/setup_no.c
index 8394b56b2c72..7dc186b7a85f 100644
--- a/arch/m68k/kernel/setup_no.c
+++ b/arch/m68k/kernel/setup_no.c
@@ -48,6 +48,7 @@ EXPORT_SYMBOL(memory_end);
char __initdata command_line[COMMAND_LINE_SIZE];
/* machine dependent timer functions */
+void (*mach_sched_init)(irq_handler_t handler) __initdata = NULL;
int (*mach_set_clock_mmss)(unsigned long);
int (*mach_hwclk) (int, struct rtc_time*);