patch: make software suspend speedup in vmware virtual machine.
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.
--------------------------------------------------
i386/kernel/suspend.c renamed from i386/kernel/suspend.c~old +1 -1
@@ -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 ();
Signature · 1 line
- Hu Gang
Hi!
Quoted 6 lines
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.
You probably can move __flush_tlb() out of both loops, it is there only to aid debugging. _But_ I'd like to keep it as is. __flush_tlb() is there to prevent heisenbugs.
Pavel
Quoted 17 lines
--------------------------------------------------
i386/kernel/suspend.c renamed from i386/kernel/suspend.c~old +1
-1@@ -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 ();Signature · 2 lines
-- - Hu Gang
Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents at [email protected]