summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/local.h
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-05-06 23:49:28 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 21:12:53 +0200
commit6310984694c8204ad16a2414cd58808fae68e02b (patch)
tree9579700c6b8b99e873462018cf536c00ab76dfb6 /include/asm-sparc64/local.h
parentSLAB: use num_possible_cpus() in enable_cpucache() (diff)
downloadlinux-6310984694c8204ad16a2414cd58808fae68e02b.tar.xz
linux-6310984694c8204ad16a2414cd58808fae68e02b.zip
SLAB: don't allocate empty shared caches
We can avoid allocating empty shared caches and avoid unecessary check of cache->limit. We save some memory. We avoid bringing into CPU cache unecessary cache lines. All accesses to l3->shared are already checking NULL pointers so this patch is safe. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Acked-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Christoph Lameter <clameter@engr.sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-sparc64/local.h')
0 files changed, 0 insertions, 0 deletions