Message ID | 200901192137.25988.arvidjaar@mail.ru (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 670c9d6..e5e9c11 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -569,12 +569,14 @@ int device_power_down(pm_message_t state) struct device *dev; int error = 0; + WARN_ONCE(!irqs_disabled(), "Interrupts enabled!\n"); list_for_each_entry_reverse(dev, &dpm_list, power.entry) { error = suspend_device_noirq(dev, state); if (error) { pm_dev_err(dev, state, " late", error); break; } + WARN_ONCE(!irqs_disabled(), "Interrupts enabled after %s! \n", de v_name(dev)); dev->power.status = DPM_OFF_IRQ;