diff mbox

[OpenWrt-Devel,v2] kernel: mitigate cgroups config dependency changes

Message ID 20150617134211.GA18567@makrotopia.org
State Accepted
Delegated to: Felix Fietkau
Headers show

Commit Message

Daniel Golle June 17, 2015, 1:42 p.m. UTC
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 <daniel@makrotopia.org>
---
 config/Config-kernel.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index cc8df5a..2572bf4 100644
--- a/config/Config-kernel.in
+++ b/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)