Merge branch 'linux-2.6'
[linux-drm-fsl-dcu.git] / arch / powerpc / Kconfig
index 5ada5b45cbb1e3102b305898aaf169cfe242ffb9..67668fdb0292ccc3003e5e63fa7daee9924b048a 100644 (file)
@@ -120,6 +120,19 @@ config GENERIC_BUG
 config SYS_SUPPORTS_APM_EMULATION
        bool
 
+#
+# Powerpc uses the slab allocator to manage its ptes and the
+# page structs of ptes are used for splitting the page table
+# lock for configurations supporting more than SPLIT_PTLOCK_CPUS.
+#
+# In that special configuration the page structs of slabs are modified.
+# This setting disables the selection of SLUB as a slab allocator.
+#
+config ARCH_USES_SLAB_PAGE_STRUCT
+       bool
+       default y
+       depends on SPLIT_PTLOCK_CPUS <= NR_CPUS
+
 config DEFAULT_UIMAGE
        bool
        help