Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d95fe4d authored by Guo Ren's avatar Guo Ren
Browse files

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: default avatarGuo Ren <ren_guo@c-sky.com>
Tested-by: default avatarLiu Zhiwei <zhiwei_liu@c-sky.com>
parent 789154c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -79,11 +79,11 @@ static int csky_mptimer_starting_cpu(unsigned int cpu)


	to->clkevt.cpumask = cpumask_of(cpu);
	to->clkevt.cpumask = cpumask_of(cpu);


	enable_percpu_irq(csky_mptimer_irq, 0);

	clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
	clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
					2, ULONG_MAX);
					2, ULONG_MAX);


	enable_percpu_irq(csky_mptimer_irq, 0);

	return 0;
	return 0;
}
}