mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Seyfried <seife@suse.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [patch] call device_shutdown with interrupts enabled
Date: Mon, 04 Jul 2005 08:33:30 +0200	[thread overview]
Message-ID: <42C8D83A.70705@suse.de> (raw)
In-Reply-To: <20050703214929.GA9214@elf.ucw.cz>

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


  reply	other threads:[~2005-07-04  7:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-03 21:49 Pavel Machek
2005-07-04  6:33 ` Stefan Seyfried [this message]
2005-07-04  7:35   ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42C8D83A.70705@suse.de \
    --to=seife@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®