mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: davej@codemonkey.org.uk
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: mark context switch wrmsr path unlikely
Date: Mon, 24 Mar 2003 16:41:57 +0000	[thread overview]
Message-ID: <200303241642.h2OGgA35008324@deviant.impure.org.uk> (raw)

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/asm-i386/processor.h linux-2.5/include/asm-i386/processor.h
--- bk-linus/include/asm-i386/processor.h	2003-03-21 12:53:30.000000000 +0000
+++ linux-2.5/include/asm-i386/processor.h	2003-03-21 13:45:20.000000000 +0000
@@ -419,7 +419,7 @@ static inline void load_esp0(struct tss_
 {
 	tss->esp0 = esp0;
 	/* This can only happen when SEP is enabled, no need to test "SEP"arately */
-	if (tss->ss1 != __KERNEL_CS) {
+	if ((unlikely(tss->ss1 != __KERNEL_CS))) {
 		tss->ss1 = __KERNEL_CS;
 		wrmsr(MSR_IA32_SYSENTER_CS, __KERNEL_CS, 0);
 	}

                 reply	other threads:[~2003-03-24 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200303241642.h2OGgA35008324@deviant.impure.org.uk \
    --to=davej@codemonkey.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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®