From: Pavel Machek <pavel@ucw.cz>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [PATCH] remove software_suspend() and fix compile w/ SOFTWARE_SUSPEND disabled
Date: Sun, 25 Mar 2007 16:34:17 +0000 [thread overview]
Message-ID: <20070325163417.GB9958@ucw.cz> (raw)
In-Reply-To: <1174571192.32051.5.camel@johannes.berg>
Hi!
> This patch kills off software_suspend() and all it's users,
> pm_suspend(PM_SUSPEND_DISK) is much cleaner anyway. Also, this
> makes the kernel compile again w/o CONFIG_SOFTWARE_SUSPEND after
> Rafael's patches to kill the suspend pageflags broke it.
>
> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
> Cc: Rafael J. Wysocki <rjw@sisk.pl>
> return error;
> }
>
> -/*
> - * This is main interface to the outside world. It needs to be
> - * called from process context.
> - */
> -int software_suspend(void)
> -{
> - return enter_state(PM_SUSPEND_DISK);
> -}
> -
> -
...
> @@ -60,7 +60,7 @@ acpi_system_write_sleep(struct file *fil
> state = simple_strtoul(str, NULL, 0);
> #ifdef CONFIG_SOFTWARE_SUSPEND
> if (state == 4) {
> - error = software_suspend();
> + error = pm_suspend(PM_SUSPEND_DISK);
> goto Done;
> }
Is enter_state and pm_suspend equivalent? Why the change?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2007-03-25 16:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 13:46 [PATCH] remove software_suspend() and fix compile w/ SOFTWARE_SUSPEND disabled Johannes Berg
2007-03-22 21:12 ` Rafael J. Wysocki
2007-03-23 13:46 ` Johannes Berg
2007-03-25 16:34 ` Pavel Machek [this message]
2007-03-25 18:18 ` Johannes Berg
2007-03-25 19:53 ` 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=20070325163417.GB9958@ucw.cz \
--to=pavel@ucw.cz \
--cc=johannes@sipsolutions.net \
--cc=linux-pm@lists.linux-foundation.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