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

Felix Fietkau nbd at openwrt.org
Wed Jun 17 08:56:54 EDT 2015


On 2015-06-16 15:20, Daniel Golle wrote:
> Memory Resource Controller no longer depends on Resource counters since
> Kernel version 4.0.
> 
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
> ---
>  config/Config-kernel.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/config/Config-kernel.in b/config/Config-kernel.in
> index cc8df5a..86753ca 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_4_0
Should be || !LINUX_3_18 instead, otherwise it would have to be updated
with every new kernel release that we add.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list