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

clocksource/drivers/c-sky: fixup qemu fail to bootup sometimes.

Timer startup must after timer_irq_enable. For qemu, timer tick
irq hanppens but irq not enable, so it will cause qemu boot failed.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Tested-by: Liu Zhiwei <zhiwei_liu@c-sky.com>

Guo Ren 1d95fe4d 789154c2

+2 -2
+2 -2
drivers/clocksource/timer-mp-csky.c
··· 79 79 80 80 to->clkevt.cpumask = cpumask_of(cpu); 81 81 82 + enable_percpu_irq(csky_mptimer_irq, 0); 83 + 82 84 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), 83 85 2, ULONG_MAX); 84 - 85 - enable_percpu_irq(csky_mptimer_irq, 0); 86 86 87 87 return 0; 88 88 }