From: Pavel Machek <pavel@ucw.cz>
To: Erik Rigtorp <erik@rigtorp.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kernel/power/swsusp.c
Date: Sat, 3 Jul 2004 22:46:47 +0200 [thread overview]
Message-ID: <20040703204647.GE31892@elf.ucw.cz> (raw)
In-Reply-To: <20040703172843.GA7274@linux.nu>
Hi!
> Swsusp allocates a vt before it nows if it will need it. This interferes
> with bootsplash. Here is a patch that moves the pm_prepare_console() call
> so that its only executed if swsusp finds a valid image to resume.
You are moving it inside function that should have no business doing
this... Would something like this work better? [hand-edited, apply by
hand; untested].
BTW is bootsplash actually used by suse and/or redhat? Suse certainly
has some splashscreen... Perhaps some splash support into swsusp (as
an add on) would be good idea, but it would be good to only code it
once.
Pavel
--- clean/kernel/power/swsusp.c 2004-06-22 12:36:47.000000000 +0200
+++ linux/kernel/power/swsusp.c 2004-07-03 22:40:47.000000000 +0200
@@ -1190,9 +1190,6 @@
}
MDELAY(1000);
- if (pm_prepare_console())
- printk("swsusp: Can't allocate a console... proceeding\n");
-
if (!resume_file[0] && resume_status == RESUME_SPECIFIED) {
printk( "suspension device unspecified\n" );
return -EINVAL;
@@ -1201,12 +1198,17 @@
printk( "resuming from %s\n", resume_file);
if (read_suspend_image(resume_file, 0))
goto read_failure;
+
+ if (pm_prepare_console())
+ printk("swsusp: Can't allocate a console... proceeding\n");
+
device_suspend(4);
do_magic(1);
panic("This never returns");
read_failure:
- pm_restore_console();
return 0;
}
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
next prev parent reply other threads:[~2004-07-03 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-03 17:28 Erik Rigtorp
2004-07-03 20:46 ` Pavel Machek [this message]
2004-07-04 11:49 ` Erik Rigtorp
2004-07-04 22:50 ` Nigel Cunningham
2004-07-04 13:37 ` Erik Rigtorp
2004-07-04 15:18 ` Pavel Machek
2004-07-05 10:54 ` Erik Rigtorp
2004-07-05 15:13 ` 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=20040703204647.GE31892@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=erik@rigtorp.com \
--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®