Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Early dummy clockevent registration on boot CPU.

The dummy timer needs to be registered on the boot CPU before the
system timer clockevent is registered, or broadcasting doesn't work
as advertized.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+4 -3
+4 -3
arch/sh/kernel/time_32.c
··· 254 254 set_normalized_timespec(&wall_to_monotonic, 255 255 -xtime.tv_sec, -xtime.tv_nsec); 256 256 257 + #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST 258 + local_timer_setup(smp_processor_id()); 259 + #endif 260 + 257 261 /* 258 262 * Find the timer to use as the system timer, it will be 259 263 * initialized for us. ··· 265 261 sys_timer = get_sys_timer(); 266 262 printk(KERN_INFO "Using %s for system timer\n", sys_timer->name); 267 263 268 - #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST 269 - local_timer_setup(smp_processor_id()); 270 - #endif 271 264 272 265 if (sys_timer->ops->read) 273 266 clocksource_sh.read = sys_timer->ops->read;