* [PATCH 2.6.19-rc1-mm1] espfix Use scaling addressing mode rather than shifting in PER_CPU
@ 2006-10-11 0:39 Jeremy Fitzhardinge
0 siblings, 0 replies; only message in thread
From: Jeremy Fitzhardinge @ 2006-10-11 0:39 UTC (permalink / raw)
To: Andrew Morton
Cc: Linux Kernel Mailing List, Stas Sergeev, Zachary Amsden,
Chuck Ebbert, Jan Beulich, Andi Kleen
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) \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-11 0:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 0:39 [PATCH 2.6.19-rc1-mm1] espfix Use scaling addressing mode rather than shifting in PER_CPU Jeremy Fitzhardinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox