[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <157925572248.396.13151894178940447793.tip-bot2@tip-bot2>
Date: Fri, 17 Jan 2020 10:08:42 -0000
From: "tip-bot2 for Li Guanglei" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Li Guanglei <guanglei.li@...soc.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Qais Yousef <qais.yousef@....com>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: sched/core] sched/core: Fix size of rq::uclamp initialization
The following commit has been merged into the sched/core branch of tip:
Commit-ID: dcd6dffb0a75741471297724640733fa4e958d72
Gitweb: https://git.kernel.org/tip/dcd6dffb0a75741471297724640733fa4e958d72
Author: Li Guanglei <guanglei.li@...soc.com>
AuthorDate: Wed, 25 Dec 2019 15:44:04 +08:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Fri, 17 Jan 2020 10:19:20 +01:00
sched/core: Fix size of rq::uclamp initialization
rq::uclamp is an array of struct uclamp_rq, make sure we clear the
whole thing.
Fixes: 69842cba9ace ("sched/uclamp: Add CPU's clamp buckets refcountinga")
Signed-off-by: Li Guanglei <guanglei.li@...soc.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Reviewed-by: Qais Yousef <qais.yousef@....com>
Link: https://lkml.kernel.org/r/1577259844-12677-1-git-send-email-guangleix.li@gmail.com
---
kernel/sched/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index d0270b1..fc1dfc0 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1253,7 +1253,8 @@ static void __init init_uclamp(void)
mutex_init(&uclamp_mutex);
for_each_possible_cpu(cpu) {
- memset(&cpu_rq(cpu)->uclamp, 0, sizeof(struct uclamp_rq));
+ memset(&cpu_rq(cpu)->uclamp, 0,
+ sizeof(struct uclamp_rq)*UCLAMP_CNT);
cpu_rq(cpu)->uclamp_flags = 0;
}
Powered by blists - more mailing lists