Commit 13efa616 authored by Qinglang Miao's avatar Qinglang Miao Committed by Ingo Molnar

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: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarIngo 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
parent e17ae7fe
...@@ -1425,8 +1425,6 @@ static void __init init_uclamp(void) ...@@ -1425,8 +1425,6 @@ static void __init init_uclamp(void)
enum uclamp_id clamp_id; enum uclamp_id clamp_id;
int cpu; int cpu;
mutex_init(&uclamp_mutex);
for_each_possible_cpu(cpu) for_each_possible_cpu(cpu)
init_uclamp_rq(cpu_rq(cpu)); init_uclamp_rq(cpu_rq(cpu));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment