Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp954666ybi; Tue, 16 Jul 2019 07:35:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqziumR/0yNGj07w/Caj1TY3EuYCruHlMu1nA4Y+Z5OKWuX39GKdHASnpye93SCOC4l2tIxr X-Received: by 2002:a17:902:7c96:: with SMTP id y22mr36698016pll.39.1563287704309; Tue, 16 Jul 2019 07:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563287704; cv=none; d=google.com; s=arc-20160816; b=GkWz8nA3R/bEcS7msNdhYa7aqEVlACkjnM+aAWLFuxvADkxmuPAJ/Rt60GHHPnhqfn KDIwqORmGrLbEfYecN/OK0ceXAtItjeV2tWmEHnWD73Y5yHb6fwyZYo78cvI/2+U1OpY y9MY+YYwV2u3pfiwky3yJVTpW7fbIFkOJxK4QBwTFJbaG7eRg0mk8B89fnzj6pT4hNfL AnIfUvYXEPfXzyROMOr+KMh3R/98FKX52PYHyGVHJmjYaof4olnV1zH7L+p1zaSRtM08 BWXurhyXqASxcWgN+pCU9YnNCfjQwgh1VQIG9p8ilD5gQPAnAKU0mvSx0C8ru+KujUvG /PTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=H13TAnw/5/GFtbmJusjdRuKOytIQzsHUU2nHDILE4yc=; b=aSgfb68sBFhmvJxeBVizLMWxWmAjqVMDg0RWEFonCi0dbapuFMAWqkMtCZl1bRZ40j 5iViXJcppp8OuPqjf03LR1JAxQ4reE7EzMMMJXim+BKBQW+/ZUkjzQV30NBolzBTeFv8 Y04VTgYChoVOioepVstrTzcTQB0lGgthbnS8fjjI5v8nLwFEnZfqA9T9st0Yqi3+M6H9 57B/23fhIlGbkLUYoM2OsptfE623ickvkSjayA43S/KQ6yt45MFRj964u1hsrnQeX/UA 4olSKMPgxThyUSGJqwdzGXXJwfPKq9EoNnlkZwP5K2/Iw58Ilx9TZOLi+IPW7j0j3Po2 YuOg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19si20670380pfa.19.2019.07.16.07.34.47; Tue, 16 Jul 2019 07:35:04 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733223AbfGPOeW (ORCPT + 99 others); Tue, 16 Jul 2019 10:34:22 -0400 Received: from foss.arm.com ([217.140.110.172]:35768 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727849AbfGPOeW (ORCPT ); Tue, 16 Jul 2019 10:34:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B4EA8337; Tue, 16 Jul 2019 07:34:21 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5E4163F59C; Tue, 16 Jul 2019 07:34:19 -0700 (PDT) Date: Tue, 16 Jul 2019 15:34:17 +0100 From: Patrick Bellasi To: Michal =?utf-8?Q?Koutn=C3=BD?= Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Tejun Heo , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan , Alessio Balsini Subject: Re: [PATCH v11 3/5] sched/core: uclamp: Propagate system defaults to root group Message-ID: <20190716143417.us3xhksrsaxsl2ok@e110439-lin> References: <20190708084357.12944-1-patrick.bellasi@arm.com> <20190708084357.12944-4-patrick.bellasi@arm.com> <20190715164226.GA30262@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190715164226.GA30262@blackbody.suse.cz> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-Jul 18:42, Michal Koutn? wrote: > On Mon, Jul 08, 2019 at 09:43:55AM +0100, Patrick Bellasi wrote: > > +static void uclamp_update_root_tg(void) > > +{ > > + struct task_group *tg = &root_task_group; > > + > > + uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], > > + sysctl_sched_uclamp_util_min, false); > > + uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], > > + sysctl_sched_uclamp_util_max, false); > > + > > + cpu_util_update_eff(&root_task_group.css); > > +} > cpu_util_update_eff internally calls css_for_each_descendant_pre() so > this should be protected with rcu_read_lock(). Right, good catch! Will add in v12. Cheers, Patrick -- #include Patrick Bellasi