patch: make software suspend speedup in vmware virtual machine.

From: Hu Gang (hugang@soulinfo.com)
Date: Wed Oct 16 2002 - 06:51:41 EST


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


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:27 EST