Re: [PATCH] kernel/power/swsusp.c

From: Pavel Machek
Date: Mon Jul 05 2004 - 10:16:10 EST


Hi!

> On Sun, Jul 04, 2004 at 05:18:49PM +0200, Pavel Machek wrote:
> > Actually, this has several advantages -- you can actually see the
> > messages of the kernel during resume. And reading does logically
> > belong to the kernel doing boot, so it belongs on its screen, too...
>
> Here's a clean patch that does just that.

Thanks. I applied equivalent patch to my tree, and it will eventually
propagate. This probably does not apply to latest -bk kernel. If it
does, you can send it to akpm and say that I approved it.

Pavel

> diff -Nru linux-2.6.7/kernel/power/swsusp.c linux-2.6.7-pavel/kernel/power/swsusp.c
> --- linux-2.6.7/kernel/power/swsusp.c 2004-06-16 07:19:02.000000000 +0200
> +++ linux-2.6.7-pavel/kernel/power/swsusp.c 2004-07-04 15:15:25.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,15 @@
> 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!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/