]> git.baikalelectronics.ru Git - kernel.git/commit
SLUB: add support for dynamic cacheline size determination
authorChristoph Lameter <clameter@sgi.com>
Wed, 9 May 2007 09:32:35 +0000 (02:32 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:44 +0000 (12:30 -0700)
commit0283208179388f0c1b7ccef55a58ad169f2c46b5
treec7b5165775951bb8e78f4e483b69c969042e8208
parentb105bc038609b5bfcbca715db9c794510b631a0f
SLUB: add support for dynamic cacheline size determination

SLUB currently assumes that the cacheline size is static.  However, i386 f.e.
supports dynamic cache line size determination.

Use cache_line_size() instead of L1_CACHE_BYTES in the allocator.

That also explains the purpose of SLAB_HWCACHE_ALIGN.  So we will need to keep
that one around to allow dynamic aligning of objects depending on boot
determination of the cache line size.

[akpm@linux-foundation.org: need to define it before we use it]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c