summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-07-25 16:56:29 +0800
committerIngo Molnar <mingo@kernel.org>2020-07-25 12:10:36 +0200
commit13efa616124f7eec7d6a58adeeef31864aa03879 (patch)
treef845f45c278279a00cfa12f24c21ada58be34b37 /kernel
parente17ae7fea8714caa743aa0d5e446a25a999ad726 (diff)
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@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
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index bd8e5211d31f..678253450ebb 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));