Messages in this thread Patch in this message | | | Date | Fri, 29 Oct 2004 15:07:51 +0800 (CST) | From | "Zhu, Yi" <> | Subject | RE: [PATCH] [swsusp] print error message when swapping is disabled |
| |
On Tue, 26 Oct 2004, Li, Shaohua wrote:
> Another case is PSE disabled. Should notify this to user also.
Here is a patch to address it.
Thanks, -yi
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
diff -urp linux-2.6.10-rc1-orig/include/asm-i386/suspend.h linux-2.6.10-rc1/include/asm-i386/suspend.h --- linux-2.6.10-rc1-orig/include/asm-i386/suspend.h 2004-10-29 14:11:44.000000000 +0800 +++ linux-2.6.10-rc1/include/asm-i386/suspend.h 2004-10-29 14:14:41.000000000 +0800 @@ -12,8 +12,11 @@ arch_prepare_suspend(void) /* If you want to make non-PSE machine work, turn off paging in do_magic. swsusp_pg_dir should have identity mapping, so it could work... */ - if (!cpu_has_pse) + if (!cpu_has_pse) { + printk(KERN_ERR "swsusp: FATAL: PSE is not availiable or " + "disabled on your system!\n"); return -EPERM; + } return 0; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |