Skip to content

Commit

Permalink
sched/uclamp: Remove unnecessary mutex_init()
Browse files Browse the repository at this point in the history
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@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Link: https://lore.kernel.org/r/20200725085629.98292-1-miaoqinglang@huawei.com
  • Loading branch information
Qinglang Miao authored and Ingo Molnar committed Jul 25, 2020
1 parent e17ae7f commit 13efa61
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 13efa61

Please sign in to comment.