* Make kernel/suspend.c compile with DISCONTIGMEM
@ 2002-10-10 8:28 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2002-10-10 8:28 UTC (permalink / raw)
To: Rusty trivial patch monkey Russell, kernel list
Hi!
This cleans up includes a tiny bit and makes it compile on
CONFIG_DISCONTIGMEM. Thanx to BUG_ON(), code is not really changed at
all.
Pavel
--- clean/kernel/suspend.c 2002-10-08 21:25:38.000000000 +0200
+++ linux-swsusp/kernel/suspend.c 2002-10-08 22:29:36.000000000 +0200
@@ -57,12 +57,13 @@
#include <linux/pm.h>
#include <linux/device.h>
#include <linux/buffer_head.h>
+#include <linux/swapops.h>
+#include <linux/bootmem.h>
#include <asm/uaccess.h>
#include <asm/mmu_context.h>
#include <asm/pgtable.h>
#include <asm/io.h>
-#include <linux/swapops.h>
extern void signal_wake_up(struct task_struct *t);
extern int sys_sync(void);
@@ -474,9 +475,9 @@
#ifdef CONFIG_DISCONTIGMEM
panic("Discontingmem not supported");
#else
- BUG_ON (max_mapnr != num_physpages);
+ BUG_ON (max_pfn != num_physpages);
#endif
- for (pfn = 0; pfn < max_mapnr; pfn++) {
+ for (pfn = 0; pfn < max_pfn; pfn++) {
page = pfn_to_page(pfn);
if (PageHighMem(page))
panic("Swsusp not supported on highmem boxes. Send 1GB of RAM to <pavel@ucw.cz> and try again ;-).");
--
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-10 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 8:28 Make kernel/suspend.c compile with DISCONTIGMEM Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).