mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hu Gang <hugang@soulinfo.com>
To: linux-kernel@vger.kernel.org, Pavel Machek <pavel@ucw.cz>
Subject: patch: make software suspend speedup in vmware virtual machine.
Date: Wed, 16 Oct 2002 19:51:41 +0800	[thread overview]
Message-ID: <20021016195141.653ec380.hugang@soulinfo.com> (raw)

[-- 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 --]

             reply	other threads:[~2002-10-16 11:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 11:51 Hu Gang [this message]
2002-10-19 22:01 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021016195141.653ec380.hugang@soulinfo.com \
    --to=hugang@soulinfo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®