public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch]flush tlb when suspend
@ 2004-10-20  5:47 Li Shaohua
       [not found] ` <1098251261.1756.5.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Li Shaohua @ 2004-10-20  5:47 UTC (permalink / raw)
  To: ACPI-DEV; +Cc: Len Brown, Pavel Machek

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

Possibly this patch can't resolve any problem (we didn't use low mem
when suspend), but I think it's better if we flush the tlb.

Thanks,
Shaohua

===== arch/i386/kernel/acpi/sleep.c 1.6 vs edited =====
--- 1.6/arch/i386/kernel/acpi/sleep.c	2004-10-19 13:26:45 +08:00
+++ edited/arch/i386/kernel/acpi/sleep.c	2004-10-20 13:39:58 +08:00
@@ -27,6 +27,7 @@ static void init_low_mapping(pgd_t *pgd,
 		set_pgd(pgd, *(pgd+USER_PTRS_PER_PGD));
 		pgd_ofs++, pgd++;
 	}
+	flush_tlb_all();
 }
 
 /**


[-- Attachment #2: tlb.patch --]
[-- Type: text/x-patch, Size: 345 bytes --]

===== arch/i386/kernel/acpi/sleep.c 1.6 vs edited =====
--- 1.6/arch/i386/kernel/acpi/sleep.c	2004-10-19 13:26:45 +08:00
+++ edited/arch/i386/kernel/acpi/sleep.c	2004-10-20 13:39:58 +08:00
@@ -27,6 +27,7 @@ static void init_low_mapping(pgd_t *pgd,
 		set_pgd(pgd, *(pgd+USER_PTRS_PER_PGD));
 		pgd_ofs++, pgd++;
 	}
+	flush_tlb_all();
 }
 
 /**

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-20 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20  5:47 [patch]flush tlb when suspend Li Shaohua
     [not found] ` <1098251261.1756.5.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2004-10-20 15:47   ` Pavel Machek

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