[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <159567201333.4006.12551438170876994206.tip-bot2@tip-bot2>
Date: Sat, 25 Jul 2020 10:13:33 -0000
From: "tip-bot2 for Qinglang Miao" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Qinglang Miao <miaoqinglang@...wei.com>,
Ingo Molnar <mingo@...nel.org>,
Patrick Bellasi <patrick.bellasi@....com>,
Peter Zijlstra <peterz@...radead.org>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: sched/core] sched/uclamp: Remove unnecessary mutex_init()
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@...wei.com>
AuthorDate: Sat, 25 Jul 2020 16:56:29 +08:00
Committer: Ingo Molnar <mingo@...nel.org>
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@...wei.com>
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: Patrick Bellasi <patrick.bellasi@....com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Vincent Guittot <vincent.guittot@...aro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@....com>
Link: https://lore.kernel.org/r/20200725085629.98292-1-miaoqinglang@huawei.com
---
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));
Powered by blists - more mailing lists