lkml.org 
[lkml]   [2019]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v11 3/5] sched/core: uclamp: Propagate system defaults to root group
On Mon, Jul 08, 2019 at 09:43:55AM +0100, Patrick Bellasi <patrick.bellasi@arm.com> 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().

\
 
 \ /
  Last update: 2019-07-15 18:43    [W:0.151 / U:2.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site