]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] slab: removes local_irq_save()/local_irq_restore() pair
authorManfred Spraul <manfred@colorfullife.com>
Sat, 3 Sep 2005 22:55:07 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:49 +0000 (00:05 -0700)
commit00e145b6d59a16dd7740197a18f7abdb3af004a9
tree7b081ccfa6a34e5a17f4f1d6925d4945df2a97c1
parent34342e863c3143640c031760140d640a06c6a5f8
[PATCH] slab: removes local_irq_save()/local_irq_restore() pair

Proposed by and based on a patch from Eric Dumazet <dada1@cosmosbay.com>:
This patch removes unnecessary critical section in ksize() function, as
cli/sti are rather expensive on modern CPUS.

It additionally adds a docbook entry for ksize() and further simplifies the
code.

Signed-Off-By: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c