Re: [PATCH] machine_power_off: not only local_irq_disable but also do disable preemption

From: Russell King - ARM Linux
Date: Sun Jul 06 2014 - 11:36:12 EST


On Sun, Jul 06, 2014 at 08:20:36PM +0530, pawandeep oza wrote:
> just to add to this,
> this scenerio happened on the platform which I am working on,
> where interrupts were being re-enabled in rpm_callback path...because the

Can you explain how you get to the runtime callback paths from the
system reboot/shutdown handlers?

In any case, calling the plain _irq (rather than _irqsave) variants of
spinlocks when IRQs are already disabled is (another) bug. The plain
_irq variants are not permitted when IRQs have been previously
disabled.

--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
--
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/