* [patch] call device_shutdown with interrupts enabled
@ 2005-07-03 21:49 Pavel Machek
2005-07-04 6:33 ` Stefan Seyfried
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2005-07-03 21:49 UTC (permalink / raw)
To: Andrew Morton, kernel list
Do not call device_shutdown with interrupts disabled. It is wrong and
produces ugly warnings.
Signed-off-by: Pavel Machek <pavel@suse.cz>
---
commit 325107c7d4a5a28dee6eecce1ee8fa01753414c7
tree ea824a39656ae9da70f6738e9452b1ac7b561ab3
parent b61ea835309d0fb87cf1c7a2d83d5832ae8eb116
author <pavel@amd.(none)> Sun, 03 Jul 2005 23:48:35 +0200
committer <pavel@amd.(none)> Sun, 03 Jul 2005 23:48:35 +0200
kernel/power/disk.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/power/disk.c b/kernel/power/disk.c
--- a/kernel/power/disk.c
+++ b/kernel/power/disk.c
@@ -50,19 +50,21 @@ static void power_down(suspend_disk_meth
unsigned long flags;
int error = 0;
- local_irq_save(flags);
switch(mode) {
case PM_DISK_PLATFORM:
- device_shutdown();
+ device_shutdown();
+ local_irq_save(flags);
error = pm_ops->enter(PM_SUSPEND_DISK);
break;
case PM_DISK_SHUTDOWN:
printk("Powering off system\n");
device_shutdown();
+ local_irq_save(flags);
machine_power_off();
break;
case PM_DISK_REBOOT:
device_shutdown();
+ local_irq_save(flags);
machine_restart(NULL);
break;
}
--
teflon -- maybe it is a trademark, but it should not be.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] call device_shutdown with interrupts enabled
2005-07-03 21:49 [patch] call device_shutdown with interrupts enabled Pavel Machek
@ 2005-07-04 6:33 ` Stefan Seyfried
2005-07-04 7:35 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Seyfried @ 2005-07-04 6:33 UTC (permalink / raw)
To: Pavel Machek; +Cc: LKML
Pavel Machek wrote:
> Do not call device_shutdown with interrupts disabled. It is wrong and
> produces ugly warnings.
Hm. How about (possible whitespace damage):
--- linux/kernel/power/disk.c~ 2005-07-04 08:26:47.000000000 +0200
+++ linux/kernel/power/disk.c 2005-07-04 08:27:45.000000000 +0200
@@ -53,19 +53,17 @@ static void power_down(suspend_disk_meth
unsigned long flags;
int error = 0;
+ device_shutdown();
local_irq_save(flags);
switch(mode) {
case PM_DISK_PLATFORM:
- device_shutdown();
error = pm_ops->enter(PM_SUSPEND_DISK);
break;
case PM_DISK_SHUTDOWN:
printk("Powering off system\n");
- device_shutdown();
machine_power_off();
break;
case PM_DISK_REBOOT:
- device_shutdown();
machine_restart(NULL);
break;
}
--
Stefan Seyfried \ "I didn't want to write for pay. I
QA / R&D Team Mobile Devices \ wanted to be paid for what I write."
SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] call device_shutdown with interrupts enabled
2005-07-04 6:33 ` Stefan Seyfried
@ 2005-07-04 7:35 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2005-07-04 7:35 UTC (permalink / raw)
To: Stefan Seyfried; +Cc: LKML
Hi!
> > Do not call device_shutdown with interrupts disabled. It is wrong and
> > produces ugly warnings.
>
> Hm. How about (possible whitespace damage):
Hmm, right, that's better patch. Applied (will push upstream with next
batch).
Pavel
--
teflon -- maybe it is a trademark, but it should not be.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-04 7:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 21:49 [patch] call device_shutdown with interrupts enabled Pavel Machek
2005-07-04 6:33 ` Stefan Seyfried
2005-07-04 7:35 ` Pavel Machek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.