Re: [PATCH V4] rcu: change function declaration to bool

2015-05-11 Thread Josh Triplett
On Mon, May 11, 2015 at 06:12:27PM +0200, Nicholas Mc Guire wrote: > rcu_cpu_has_callbacks() is declared int. The current declaration was > introduced > in commit c0f4dfd4f90f (rcu: Make RCU_FAST_NO_HZ take advantage of numbered > callbacks). But it is actually returning bool and as the function

[PATCH V4] rcu: change function declaration to bool

2015-05-11 Thread Nicholas Mc Guire
rcu_cpu_has_callbacks() is declared int. The current declaration was introduced in commit c0f4dfd4f90f (rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks). But it is actually returning bool and as the function description states " * Return true if the specified CPU has any

Re: [PATCH V4] rcu: change function declaration to bool

2015-05-11 Thread Josh Triplett
On Mon, May 11, 2015 at 06:12:27PM +0200, Nicholas Mc Guire wrote: rcu_cpu_has_callbacks() is declared int. The current declaration was introduced in commit c0f4dfd4f90f (rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks). But it is actually returning bool and as the function

[PATCH V4] rcu: change function declaration to bool

2015-05-11 Thread Nicholas Mc Guire
rcu_cpu_has_callbacks() is declared int. The current declaration was introduced in commit c0f4dfd4f90f (rcu: Make RCU_FAST_NO_HZ take advantage of numbered callbacks). But it is actually returning bool and as the function description states * Return true if the specified CPU has any