[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200725085629.98292-1-miaoqinglang@huawei.com>
Date: Sat, 25 Jul 2020 16:56:29 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>,
Ben Segall <bsegall@...gle.com>,
"Mel Gorman" <mgorman@...e.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] sched/uclamp: kill unnecessary mutex_init()
The mutex uclamp_mutex is initialized statically. It is
unnecessary to initialize by mutex_init().
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
kernel/sched/core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 29d557c1f..9a8b7ed3a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1331,8 +1331,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));
--
2.25.1
Powered by blists - more mailing lists