1 Sep 2006 01:05
Re: prevent swsusp with PAE
Randy.Dunlap <rdunlap <at> xenotime.net>
2006-08-31 23:05:46 GMT
2006-08-31 23:05:46 GMT
On Fri, 1 Sep 2006 00:52:34 +0200 Pavel Machek wrote: > On Thu 2006-08-31 15:48:28, Andrew Morton wrote: > > On Fri, 1 Sep 2006 00:35:21 +0200 > > Pavel Machek <pavel <at> ucw.cz> wrote: > > > > > > > diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h > > > > > index 08be1e5..01cd812 100644 > > > > > --- a/include/asm-i386/suspend.h > > > > > +++ b/include/asm-i386/suspend.h > > > > > <at> <at> -16,6 +16,15 <at> <at> arch_prepare_suspend(void) > > > > > printk(KERN_ERR "PSE is required for swsusp.\n"); > > > > > return -EPERM; > > > > > } > > > > > + > > > > > +#ifdef CONFIG_X86_PAE > > > > > + printk(KERN_ERR "swsusp is incompatible with PAE.\n"); > > > > > + /* This is actually instance of the same problem. We need > > > > > + identity mapping self-contained in swsusp_pg_dir, and PAE > > > > > + prevents that. Solution could be copied from x86_64. */ > > > > > + return -EPERM; > > > > > +#endif > > > > > + > > > > > return 0; > > > > > } > > > > > > > > Why not do this in Kconfig?? > > > > > > Well, Kconfig does not provide natural place for comments, and > > > disappearing config option is sure to confuse people. But of course I(Continue reading)
RSS Feed