summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-05-19 02:35:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-19 02:35:27 -0700
commit897d49be87feb06747a3538e7fbf16cdcd349b75 (patch)
tree7c67e19e472883d73cada84c1cd5d82362cb3f64
parent6fa1d901d520c1414a1cb3386bbaf0c51a445e20 (diff)
[PATCH] slab: enable runtime cache line size on i386
From: Manfred Spraul <manfred@colorfullife.com> the attached patch switches the SLAB_HWCACHE_ALIGN alignment from the compile time L1 cache line size to the runtime detected value for i386. x86-64 already uses the runtime detection.
-rw-r--r--include/asm-i386/processor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index bab235068f91..9d49ea237f30 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -649,6 +649,8 @@ extern inline void prefetchw(const void *x)
extern void select_idle_routine(const struct cpuinfo_x86 *c);
+#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
+
#ifdef CONFIG_SCHED_SMT
#define ARCH_HAS_SCHED_DOMAIN
#define ARCH_HAS_SCHED_WAKE_IDLE