projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd73ca2
)
rcu: tree_plugin: Use bool function return values of true/false not 1/0
author
Joe Perches
<joe@perches.com>
Mon, 30 Mar 2015 23:46:16 +0000
(16:46 -0700)
committer
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:58:01 +0000
(12:58 -0700)
Use the normal return values for bool functions
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h
patch
|
blob
|
blame
|
history
diff --git
a/kernel/rcu/tree_plugin.h
b/kernel/rcu/tree_plugin.h
index 0730bfcf65db7b2e69b0571cd076217f13486e4b..f8af20273868273427275aae1b0a03199cef08fc 100644
(file)
--- a/
kernel/rcu/tree_plugin.h
+++ b/
kernel/rcu/tree_plugin.h
@@
-3056,9
+3056,9
@@
static bool rcu_nohz_full_cpu(struct rcu_state *rsp)
if (tick_nohz_full_cpu(smp_processor_id()) &&
(!rcu_gp_in_progress(rsp) ||
ULONG_CMP_LT(jiffies, READ_ONCE(rsp->gp_start) + HZ)))
- return
1
;
+ return
true
;
#endif /* #ifdef CONFIG_NO_HZ_FULL */
- return
0
;
+ return
false
;
}
/*