mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [2/5]
@ 2004-09-16 23:51 Nigel Cunningham
  0 siblings, 0 replies; only message in thread
From: Nigel Cunningham @ 2004-09-16 23:51 UTC (permalink / raw)
  To: Andrew Morton, Linux Kernel Mailing List

Patch 2:

Disable trying to flush TLBs on other processors while they're frozen.
(Local TLBs are flushed on exit from the processor-freezer).

Regards,

Nigel

diff -ruN linux-2.6.9-rc1/mm/highmem.c software-suspend-linux-2.6.9-rc1-rev3/mm/highmem.c
--- linux-2.6.9-rc1/mm/highmem.c	2004-09-07 21:59:01.000000000 +1000
+++ software-suspend-linux-2.6.9-rc1-rev3/mm/highmem.c	2004-09-09 19:36:24.000000000 +1000
@@ -26,6 +26,7 @@
 #include <linux/init.h>
 #include <linux/hash.h>
 #include <linux/highmem.h>
+#include <linux/suspend.h>
 #include <asm/tlbflush.h>
 
 static mempool_t *page_pool, *isa_page_pool;
@@ -94,7 +95,12 @@
 
 		set_page_address(page, NULL);
 	}
-	flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP));
+#ifdef CONFIG_PM
+	if (software_suspend_state & SOFTWARE_SUSPEND_FREEZE_SMP)
+		__flush_tlb();
+	else
+#endif
+		flush_tlb_kernel_range(PKMAP_ADDR(0), PKMAP_ADDR(LAST_PKMAP));
 }
 
 static inline unsigned long map_new_virtual(struct page *page)

-- 
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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-16 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 23:51 [PATCH] Suspend2 Merge: Supress various actions/errors while suspending [2/5] Nigel Cunningham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®