All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] sched/uclamp: kill unnecessary mutex_init()
@ 2020-07-25  8:56 Qinglang Miao
  2020-07-25 10:13 ` [tip: sched/core] sched/uclamp: Remove " tip-bot2 for Qinglang Miao
  2020-07-31  2:57 ` [PATCH -next] sched/uclamp: kill " Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Qinglang Miao @ 2020-07-25  8:56 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot,
	Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Greg Kroah-Hartman
  Cc: linux-kernel

The mutex uclamp_mutex is initialized statically. It is
unnecessary to initialize by mutex_init().

Signed-off-by: Qinglang Miao <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 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-31  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25  8:56 [PATCH -next] sched/uclamp: kill unnecessary mutex_init() Qinglang Miao
2020-07-25 10:13 ` [tip: sched/core] sched/uclamp: Remove " tip-bot2 for Qinglang Miao
2020-07-31  2:57 ` [PATCH -next] sched/uclamp: kill " Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.