Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1105134imu; Tue, 20 Nov 2018 11:47:14 -0800 (PST) X-Google-Smtp-Source: AJdET5cFvPBXDSrAhN6pSNGIdwn+3Bo22kVGRiiLRCi21f9/U4cPjzEVAh5JTbh+LblAJnMSxWcF X-Received: by 2002:a62:32c4:: with SMTP id y187-v6mr3595092pfy.4.1542743234271; Tue, 20 Nov 2018 11:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542743234; cv=none; d=google.com; s=arc-20160816; b=qRr6RXUy6t9GjssM+U/nldmlDBVCkxcB7AH38qc5a/DFdDaAGv09U7/rXMU+Ezdlzu w7K2Zw1+z6Ri/y79NcmLQMz1lyS3ld8W1jKhmV4+TMoejSGPvz+pvX4ZoStmbq0XpRwR fc6a1aKO0IKRGHsM8w/XFYgowy//dQwZgJGDw2WVSJ+3feIqcog7kTFDT3BZIgXADz9E UcoMvCM2aWGZIpVvuSZOE6RHdpasW28keKTpA7I3ni/e9DZ5mgcNkMJwSlwRbnnAokTR nl0i9kr8JYrp4QPBu0HIvXpvH21qfzVb8gtQW+zbmIfY3WEQIpMbgZTVNr8Ze9/FHt8p sSZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=AzucYR88jm8subcG/X+7qxiXbXz0sxED4gGbYFNIy0Q=; b=rkhV4fe294crNC7gFMnzZ3Dc/MdqsX0ZJFNQpwYgEeWHahPrWyooTDv1EAc5PZQXn4 8vSIdDizT5DtBl83f3x6l2SMoooN+/pPnLf8McD+ot/3kTs1uF52hJdsYGsQ2cuYkC4a oqEayJyONlONacfaaeKpY9qeehuMSLL7ojb00cDjbI42Ys4sYWCsdh+McaHUFSW73hBC A3KOL3AfqCAofCxnQbswRXUzvzw24i5YyXva734xn/hZ4Uc8TdeMYoEV6qeCMnUkIy3h /2LdY7gElKiKfoSxea32YKwjtuBVfk9cNG6yzNc/Lno3rEvcok4Y36BxRY+sRSQasn0J I4PQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si43432728pgi.387.2018.11.20.11.46.58; Tue, 20 Nov 2018 11:47:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730306AbeKUEWk (ORCPT + 99 others); Tue, 20 Nov 2018 23:22:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49002 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730248AbeKUEWj (ORCPT ); Tue, 20 Nov 2018 23:22:39 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0919F30832D0; Tue, 20 Nov 2018 17:52:18 +0000 (UTC) Received: from llong.com (ovpn-120-174.rdu2.redhat.com [10.10.120.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id ABA22608E5; Tue, 20 Nov 2018 17:52:15 +0000 (UTC) From: Waiman Long To: Tejun Heo , Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar , Jonathan Corbet Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Roman Gushchin , Jens Axboe , Andrew Morton , Dennis Zhou , Shakeel Butt , Waiman Long Subject: [PATCH v4 4/5] sched/core: Make cpu cgroup controller bypassable Date: Tue, 20 Nov 2018 12:51:28 -0500 Message-Id: <1542736289-31338-5-git-send-email-longman@redhat.com> In-Reply-To: <1542736289-31338-1-git-send-email-longman@redhat.com> References: <1542736289-31338-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Tue, 20 Nov 2018 17:52:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the cpu cgroup controller bypassable in the default hierarchy so that cpu controller could be activated only in those cgroups that really need it instead of all the cgroups down to the lowest level that need it. Signed-off-by: Waiman Long --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index f12225f..ba4550c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7000,6 +7000,7 @@ struct cgroup_subsys cpu_cgrp_subsys = { .dfl_cftypes = cpu_files, .early_init = true, .threaded = true, + .bypassable = true, }; #endif /* CONFIG_CGROUP_SCHED */ -- 1.8.3.1