The following commit has been merged into the sched/core branch of tip: Commit-ID: 13efa616124f7eec7d6a58adeeef31864aa03879 Gitweb: https://git.kernel.org/tip/13efa616124f7eec7d6a58adeeef31864aa03879 Author: Qinglang Miao <miaoqinglang@xxxxxxxxxx> AuthorDate: Sat, 25 Jul 2020 16:56:29 +08:00 Committer: Ingo Molnar <mingo@xxxxxxxxxx> CommitterDate: Sat, 25 Jul 2020 12:10:36 +02:00 sched/uclamp: Remove unnecessary mutex_init() The uclamp_mutex lock is initialized statically via DEFINE_MUTEX(), it is unnecessary to initialize it runtime via mutex_init(). Signed-off-by: Qinglang Miao <miaoqinglang@xxxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Patrick Bellasi <patrick.bellasi@xxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Vincent Guittot <vincent.guittot@xxxxxxxxxx> Cc: Dietmar Eggemann <dietmar.eggemann@xxxxxxx> Link: https://lore.kernel.org/r/20200725085629.98292-1-miaoqinglang@xxxxxxxxxx --- kernel/sched/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index bd8e521..6782534 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1425,8 +1425,6 @@ static void __init init_uclamp(void) enum uclamp_id clamp_id; int cpu; - mutex_init(&uclamp_mutex); - for_each_possible_cpu(cpu) init_uclamp_rq(cpu_rq(cpu));
![]() |