projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5537b
)
cpuidle / coupled: fix ready counter decrement
author
Sivaram Nair
<
[email protected]
>
Tue, 18 Dec 2012 12:52:54 +0000
(13:52 +0100)
committer
Rafael J. Wysocki
<
[email protected]
>
Thu, 3 Jan 2013 12:11:05 +0000
(13:11 +0100)
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]
>
drivers/cpuidle/coupled.c
patch
|
blob
|
history
diff --git
a/drivers/cpuidle/coupled.c
b/drivers/cpuidle/coupled.c
index 3265844839bfe9c79ef8849705262a52d16cc4e1..2a297f86dbad25be5f17e0f41029e92dd23afeaf 100644
(file)
--- a/
drivers/cpuidle/coupled.c
+++ b/
drivers/cpuidle/coupled.c
@@
-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);