Re: start_kernel(): bug: interrupts were enabled early

From: Benjamin Herrenschmidt
Date: Wed Mar 31 2010 - 18:39:09 EST


On Wed, 2010-03-31 at 14:57 -0700, H. Peter Anvin wrote:
>
> The question still remains what the incremental cost is of doing
> irqsave/irqrestore.

The only other option is to have local_irq_enable() check a global
(system_state ?) before enabling. Almost as gross ...

Cheers,
Ben.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/