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:
dbffcd0
)
kernel/smp.c:on_each_cpu_cond(): fix warning in fallback path
author
Sasha Levin
<
[email protected]
>
Wed, 6 Aug 2014 23:08:14 +0000
(16:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Aug 2014 01:01:22 +0000
(18:01 -0700)
The rarely-executed memry-allocation-failed callback path generates a
WARN_ON_ONCE() when smp_call_function_single() succeeds. Presumably
it's supposed to warn on failures.
Signed-off-by: Sasha Levin <
[email protected]
>
Cc: Christoph Lameter <
[email protected]
>
Cc: Gilad Ben-Yossef <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: Joonsoo Kim <
[email protected]
>
Cc: Tejun Heo <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/smp.c
patch
|
blob
|
history
diff --git
a/kernel/smp.c
b/kernel/smp.c
index 487653b5844f92c722ae781210064824310452a7..aff8aa14f54795faa42ae9482da75e3ea9610a82 100644
(file)
--- a/
kernel/smp.c
+++ b/
kernel/smp.c
@@
-670,7
+670,7
@@
void on_each_cpu_cond(bool (*cond_func)(int cpu, void *info),
if (cond_func(cpu, info)) {
ret = smp_call_function_single(cpu, func,
info, wait);
- WARN_ON_ONCE(
!
ret);
+ WARN_ON_ONCE(ret);
}
preempt_enable();
}