mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Marc Ballarin <Ballarin.Marc@gmx.de>,
	akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: Calling suspend() in halt/restart/shutdown -> not a good idea
Date: Thu, 4 Aug 2005 23:04:19 +0200	[thread overview]
Message-ID: <20050804210419.GB1780@elf.ucw.cz> (raw)
In-Reply-To: <1123069255.30257.27.camel@gaston>

Hi!

> > I'd like to get rid of shutdown callback. Having two copies of code
> > (one in callback, one in suspend) is ugly.
> 
> Well, it's obviously not a good time for this. First, suspend and
> shutdown don't necessarily do the same thing, then it just doesn't work
> in practice. So either do it right completely or not at all, but 2.6.13
> isn't the place for an half-assed hack that looks like a solution to
> you.

Well, if that "hack" broke something, it was broken
w.r.t. suspend-to-disk already, but... it caused enough problems that
it is not good idea for 2.6.13, agreed.

> I do agree that there are enough similarities between the suspend and
> shutdown process that we could use the same callback, but then, please,
> at least with a different argument and with drivers beeing fixed to
> handle it. Most drivers should probably just "ignore" shutdown
> anyway.

Yes, we should have different argument, but code should be really
similar in suspend-to-disk-powerdown and normal powerdown, so I'd like
to use same callback. This is post-2.6.13 material (but I'd like patch
to stay in -mm, so that drivers keep getting tested).

> BTW. I suppose we still have the same constant for PMSG_FREEZE and
> PMSG_SUSPEND ? That could have been fixed ages ago and is more important
> imho....

That one is fixed in -mm already. But I guess it will not make it into
2.6.13.
								Pavel
-- 
if you have sharp zaurus hardware you don't need... you know my address

  parent reply	other threads:[~2005-08-04 21:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 15:09 Benjamin Herrenschmidt
2005-08-01 18:37 ` Marc Ballarin
2005-08-01 20:08   ` Benjamin Herrenschmidt
2005-08-02  9:54     ` Pavel Machek
2005-08-03 11:40       ` Benjamin Herrenschmidt
2005-08-03 16:53         ` Kyle Moffett
2005-08-03 19:59           ` Benjamin Herrenschmidt
2005-08-04 20:56           ` Pavel Machek
2005-08-04 21:04         ` Pavel Machek [this message]
2005-08-02  9:53 ` Pavel Machek
2005-08-02 14:40   ` Eric W. Biederman
2005-08-02 14:45     ` Pavel Machek
2005-08-03 11:43       ` Benjamin Herrenschmidt
2005-08-03 11:43     ` Benjamin Herrenschmidt
2005-08-03 11:38   ` Benjamin Herrenschmidt
2005-08-04  2:27     ` Andrew Morton
2005-08-02 10:04 ` Pavel Machek
2005-08-03 11:41   ` Benjamin Herrenschmidt

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=20050804210419.GB1780@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=Ballarin.Marc@gmx.de \
    --cc=akpm@osdl.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    /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®