mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04: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.
Change-Id: Ia4531240ed132de30e4af333bc3c6b78143a501c
Fixes: 69842cba9a ("sched/uclamp: Add CPU's clamp buckets refcountinga")
Signed-off-by: Li Guanglei <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Qais Yousef <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Git-commit: dcd6dffb0a75741471297724640733fa4e958d72
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
Signed-off-by: Pavankumar Kondeti <[email protected]>
This commit is contained in:
parent
0dbcf5d8eb
commit
b9441eb86e
1 changed files with 2 additions and 1 deletions
|
|
@ -1266,7 +1266,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue