public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Stas Sergeev <stsp@aknet.ru>, Zachary Amsden <zach@vmware.com>,
	Chuck Ebbert <76306.1226@compuserve.com>,
	Jan Beulich <jbeulich@novell.com>, Andi Kleen <ak@suse.de>
Subject: [PATCH 2.6.19-rc1-mm1] espfix Use scaling addressing mode rather than shifting in PER_CPU
Date: Tue, 10 Oct 2006 17:39:18 -0700	[thread overview]
Message-ID: <452C3D36.7020306@goop.org> (raw)

Use the x86 scaling addressing mode rather than shifting to
multiplying by 4 in PER_CPU().

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andrew Morton <akpm@osdl.org>
Cc: Stas Sergeev <stsp@aknet.ru>
Cc: Zachary Amsden <zach@vmware.com>
Cc: Chuck Ebbert <76306.1226@compuserve.com>
Cc: Jan Beulich <jbeulich@novell.com>
Cc: Andi Kleen <ak@muc.de>

diff -r ea4549dd86a4 include/asm-i386/percpu.h
--- a/include/asm-i386/percpu.h	Tue Oct 10 16:36:02 2006 -0700
+++ b/include/asm-i386/percpu.h	Tue Oct 10 16:37:59 2006 -0700
@@ -19,8 +19,7 @@
  */
 #ifdef CONFIG_SMP
 #define PER_CPU(var, cpu) \
-	shll $2, cpu; \
-	movl __per_cpu_offset(cpu), cpu; \
+	movl __per_cpu_offset(,cpu,4), cpu;	\
 	addl $per_cpu__/**/var, cpu;
 #else /* ! SMP */
 #define PER_CPU(var, cpu) \



                 reply	other threads:[~2006-10-11  0:39 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=452C3D36.7020306@goop.org \
    --to=jeremy@goop.org \
    --cc=76306.1226@compuserve.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=jbeulich@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stsp@aknet.ru \
    --cc=zach@vmware.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