mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Patrick Mochel <mochel@digitalimplant.org>
Cc: Andrew Morton <akpm@zip.com.au>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Next step of smp support & fix device suspending
Date: Tue, 29 Jun 2004 11:08:24 +0200	[thread overview]
Message-ID: <20040629090823.GE7215@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.50.0406280809540.20762-100000@monsoon.he.net>


> > This introduces functions for stopping all-but-boot-cpus, which will
> > be needed for smp suspend, and fixes level for calling driver model:
> > there's no D4 power level, only D3 (means device off), and tg3 driver
> > actually cares. Ugh and one useless mdelay killed, and
> > freeze_processes() now BUGS() if its not compiled in. [We can probably
> > just remove it for non-CONFIG_PM case in future]. It is bad idea to
> > pretend success, and nobody should ever call it in !CONFIG_PM case
> > anyway. Please apply,
> 
> Nice, just a couple of questions...

Thanks.

> > -	device_power_down(4);
> > +	device_power_down(3);
> 
> There are defined values in include/linux/device.h. You should be using
> those, instead of the magic constants (even if the magic constants
> actually make sense as the power states :).

Ugh, I have not figured which magic constants should I use. Should
that be SUSPEND_POWER_DOWN?

> >  	PRINTK( "Waiting for DMAs to settle down...\n");
> >  	mdelay(1000);	/* We do not want some readahead with DMA to corrupt our memory, right?
> >  			   Do it with disabled interrupts for best effect. That way, if some
> 
> On a related note, can we kill this piece of code? It's not clear that
> it's necessary. If it is, it begs for a more systematic way of achieving
> the goal.

Ok, killed, I'll propagate it if there are no problems.
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

      reply	other threads:[~2004-06-29  9:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-25 11:55 Pavel Machek
     [not found] ` <20040626154607.5d3464e4.akpm@osdl.org>
2004-06-27 17:07   ` Pavel Machek
2004-06-28 15:14 ` Patrick Mochel
2004-06-29  9:08   ` Pavel Machek [this message]

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=20040629090823.GE7215@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.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®