瀏覽代碼

kernel: mitigate cgroups config dependency changes

Memory Resource Controller no longer depends on Resource counters since
Kernel version 4.0.
3.18 is the only still supported version needing Resource counters for
MEMCG, thus declare the dependency only for that version.

Signed-off-by: Daniel Golle <[email protected]>

SVN-Revision: 46024
Felix Fietkau 10 年之前
父節點
當前提交
b3d81b2dec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config/Config-kernel.in

+ 1 - 1
config/Config-kernel.in

@@ -300,7 +300,7 @@ if KERNEL_CGROUPS
 	config KERNEL_MEMCG
 		bool "Memory Resource Controller for Control Groups"
 		default n
-		depends on KERNEL_RESOURCE_COUNTERS
+		depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18
 		help
 		  Provides a memory resource controller that manages both anonymous
 		  memory and page cache. (See Documentation/cgroups/memory.txt)