mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
cpuidle / coupled: fix ready counter decrement
The ready_waiting_counts atomic variable is compared against the wrong online cpu count. The latter is computed incorrectly using logical-OR instead of bit-OR. This patch fixes that. Signed-off-by: Sivaram Nair <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Acked-by: Colin Cross <[email protected]> Cc: <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
0e5537b30d
commit
92638e2fac
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ inline int cpuidle_coupled_set_not_ready(struct cpuidle_coupled *coupled)
|
|||
int all;
|
||||
int ret;
|
||||
|
||||
all = coupled->online_count || (coupled->online_count << WAITING_BITS);
|
||||
all = coupled->online_count | (coupled->online_count << WAITING_BITS);
|
||||
ret = atomic_add_unless(&coupled->ready_waiting_counts,
|
||||
-MAX_WAITING_CPUS, all);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue