瀏覽代碼

slub: don't use cpu partial pages on UP

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>
Uwe Kleine-König 12 年之前
父節點
當前提交
b39ffbf8b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      init/Kconfig

+ 1 - 1
init/Kconfig

@@ -1598,7 +1598,7 @@ endchoice
 
 
 config SLUB_CPU_PARTIAL
 config SLUB_CPU_PARTIAL
 	default y
 	default y
-	depends on SLUB
+	depends on SLUB && SMP
 	bool "SLUB per cpu partial cache"
 	bool "SLUB per cpu partial cache"
 	help
 	help
 	  Per cpu partial caches accellerate objects allocation and freeing
 	  Per cpu partial caches accellerate objects allocation and freeing