Re: [PATCHv2] clocksource:fix kernel panic due late cs5535_clockevent

From: Thomas Gleixner
Date: Wed Jun 01 2016 - 03:00:57 EST


On Tue, 31 May 2016, Hans Ulli Kroll wrote:
> @@ -152,6 +153,9 @@ static int __init cs5535_mfgpt_init(void)
> }
> cs5535_event_clock = timer;
>
> + clockevents_config_and_register(&cs5535_clockevent, MFGPT_HZ,
> + 0xF, 0xFFFE);
> +
> /* Set up the IRQ on the MFGPT side */
> if (cs5535_mfgpt_setup_irq(timer, MFGPT_CMP2, &timer_irq)) {
> printk(KERN_ERR DRV_NAME ": Could not set up IRQ %d\n",

So what happens if that fails?

Thanks,

tglx