Skip to contentSkip to conversation

Suspend2 Merge: Supress various actions/errors while suspending [3/5]

PATCH New Nigel Cunningham 1 participant 1 message Sep 16, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Suspend2 Merge: Supress various actions/errors while suspending [3/5]

Hi.

Patch 3: Disable page alloc warnings while suspending.

Regards,

Nigel

mm/page_alloc.c +4 -0
diff -ruN linux-2.6.9-rc1/mm/page_alloc.c software-suspend-linux-2.6.9-rc1-rev3/mm/page_alloc.c
@@ -731,6 +763,10 @@
 
 nopage:
 	if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) {
+#ifdef CONFIG_SOFTWARE_SUSPEND2
+		if (software_suspend_state & SOFTWARE_SUSPEND_RUNNING)
+			return NULL;
+#endif
 		printk(KERN_WARNING "%s: page allocation failure."
 			" order:%d, mode:0x%x\n",
 			p->comm, order, gfp_mask);
Signature · 7 lines
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901

Many today claim to be tolerant. True tolerance, however, can cope with others
being intolerant.