From: Pavel Machek <pavel@suse.cz>
To: Paul P Komkoff Jr <i@stingr.net>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.19pre5-ac3
Date: Tue, 9 Apr 2002 22:53:09 +0200 [thread overview]
Message-ID: <20020409205309.GC4322@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <200204051945.g35JjnX23183@devserv.devel.redhat.com> <20020408214612.GR961@matchmail.com> <20020408013801.B329@toy.ucw.cz> <20020409204019.GD523@stingr.net>
Hi!
> > > > Linux 2.4.19pre5-ac3
> > > > o Software suspend initial patch (Pavel Machek, Gabor Kuti,..)
> > > > | Don't enable this idly. Its here to get exposure and so
> > > > | people can bring the rest of the code up to meet its needs as
> > > > | well as fix it.
> > > > | Read the docs first!
> > >
> > > Didn't enable software suspend, but I do use ACPI...
> >
> > Looks like we need some #ifdefs in acpi... I'll fix that.
>
> 10 minutes ago emailed to alan with following:
S4 is not supported in current ACPI, so you should better make it
printk("s4 not supported") and do nothing instead of entering ACPI-S4
and powering system down when user wants "only" suspend.
> diff -Nru a/drivers/acpi/ospm/system/sm_osl.c b/drivers/acpi/ospm/system/sm_osl.c
> --- a/drivers/acpi/ospm/system/sm_osl.c Wed Apr 10 00:03:00 2002
> +++ b/drivers/acpi/ospm/system/sm_osl.c Wed Apr 10 00:03:00 2002
> @@ -140,10 +140,14 @@
> if (system->states[value] != TRUE)
> return -EINVAL;
>
> +#ifdef CONFIG_SOFTWARE_SUSPEND
> if (value != ACPI_S4)
> +#endif
> sm_osl_suspend(value);
> +#ifdef CONFIG_SOFTWARE_SUSPEND
> else
> software_suspend();
> +#endif
>
> return (count);
> }
Kill first ifdef and replace second one with something like
else
#ifdef CONFIG_....
software_suspend();
#else
printk("You need .... for S4.");
#endif
Pavel
--
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
prev parent reply other threads:[~2002-04-09 20:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-05 19:45 Alan Cox
2002-04-05 23:40 ` Linux 2.4.19pre5-ac3: unresolved in radeonfb Eyal Lebedinsky
2002-04-06 20:30 ` Peter Horton
2002-04-06 1:04 ` Linux 2.4.19pre5-ac3 CaT
2002-04-06 1:09 ` Alan Cox
2002-04-06 1:12 ` CaT
2002-04-07 11:50 ` [swsusp fixes] " Pavel Machek
2002-04-06 17:37 ` Linux 2.4.19pre5-ac3 swsusp panic Ed Sweetman
2002-04-06 18:04 ` Ed Sweetman
2002-04-07 9:58 ` Pavel Machek
[not found] ` <1018546314.32748.9.camel@caffeine.pdx.osdl.net>
[not found] ` <20020412074948.GA26389@atrey.karlin.mff.cuni.cz>
[not found] ` <1018626124.2078.16.camel@caffeine.pdx.osdl.net>
2002-04-14 19:28 ` Pavel Machek
2002-04-06 2:13 ` Linux 2.4.19pre5-ac3 w/swsusp oops brian
2002-04-08 21:46 ` Linux 2.4.19pre5-ac3 Mike Fedyk
2002-04-08 1:38 ` Pavel Machek
[not found] ` <20020409204019.GD523@stingr.net>
2002-04-09 20:53 ` 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=20020409205309.GC4322@atrey.karlin.mff.cuni.cz \
--to=pavel@suse.cz \
--cc=i@stingr.net \
--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®