Commit c94cb2c1 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] sparc32: early tick_ops

The zaphod scheduler likes to call scheduler_tick() before time_init(). 
sparc32 oopses.

Perhaps a scheduler bug, but this robustifies things.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ad02973d
...@@ -64,7 +64,16 @@ static unsigned long mstk48t59_regs = 0UL; ...@@ -64,7 +64,16 @@ static unsigned long mstk48t59_regs = 0UL;
static int set_rtc_mmss(unsigned long); static int set_rtc_mmss(unsigned long);
struct sparc64_tick_ops *tick_ops; static __init unsigned long dummy_get_tick(void)
{
return 0;
}
static __initdata struct sparc64_tick_ops dummy_tick_ops = {
.get_tick = dummy_get_tick,
};
struct sparc64_tick_ops *tick_ops = &dummy_tick_ops;
#define TICK_PRIV_BIT (1UL << 63) #define TICK_PRIV_BIT (1UL << 63)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment