mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* patch: make software suspend speedup in vmware virtual machine.
@ 2002-10-16 11:51 Hu Gang
  2002-10-19 22:01 ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Hu Gang @ 2002-10-16 11:51 UTC (permalink / raw)
  To: linux-kernel, Pavel Machek

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

Hello all:

With this patch 2.5.43 can resume only need ~5sec.
without this patch 2.5.43 also can resume, but need ~240sec.

This patch also can work in normal machine. But need more test.
--------------------------------------------------
--- arch/i386/kernel/suspend.c~old	Wed Oct 16 19:39:42 2002
+++ arch/i386/kernel/suspend.c	Wed Oct 16 19:38:21 2002
@@ -290,8 +290,8 @@
 		for (loop2=0; loop2 < PAGE_SIZE; loop2++) {
 			*(((char *)((pagedir_nosave+loop)->orig_address))+loop2) =
 				*(((char *)((pagedir_nosave+loop)->address))+loop2);
-			__flush_tlb();
 		}
+		__flush_tlb();
 	}
 
 	restore_processor_context();


-- 
		- Hu Gang

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2002-10-19 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-16 11:51 patch: make software suspend speedup in vmware virtual machine Hu Gang
2002-10-19 22:01 ` Pavel Machek

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®