slub: don't use cpu partial pages on UP
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 Jul 2013 14:54:59 +0000 (16:54 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 13 Aug 2013 06:21:45 +0000 (09:21 +0300)
cpu partial pages are used to avoid contention which does not exist in
the UP case. So let SLUB_CPU_PARTIAL depend on SMP.

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
init/Kconfig

index 247084be059030162838199c953ebac6409f7e01..63c67de99c105f678ae3c9a5a3ac171e228f6428 100644 (file)
@@ -1598,7 +1598,7 @@ endchoice
 
 config SLUB_CPU_PARTIAL
        default y
-       depends on SLUB
+       depends on SLUB && SMP
        bool "SLUB per cpu partial cache"
        help
          Per cpu partial caches accellerate objects allocation and freeing
This page took 0.04336 seconds and 5 git commands to generate.