diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2015-07-29 01:29:38 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-10-06 14:08:05 -0400 |
commit | b6a4ae766e3133a4db73fabc81e522d1601cb623 (patch) | |
tree | 24f5e9c33b0f89e7e2addd66e32d0e1ca3d16efa /kernel/rcu/update.c | |
parent | 84778472e1b6a27a8931712c40e8cf31143c8f6c (diff) |
rcu: Use rcu_callback_t in call_rcu*() and friends
As we now have rcu_callback_t typedefs as the type of rcu callbacks, we
should use it in call_rcu*() and friends as the type of parameters. This
could save us a few lines of code and make it clear which function
requires an rcu callbacks rather than other callbacks as its argument.
Besides, this can also help cscope to generate a better database for
code reading.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r-- | kernel/rcu/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 7a0b3bc7c5ed..5f748c5a40f0 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c | |||
@@ -534,7 +534,7 @@ static void rcu_spawn_tasks_kthread(void); | |||
534 | * Post an RCU-tasks callback. First call must be from process context | 534 | * Post an RCU-tasks callback. First call must be from process context |
535 | * after the scheduler if fully operational. | 535 | * after the scheduler if fully operational. |
536 | */ | 536 | */ |
537 | void call_rcu_tasks(struct rcu_head *rhp, void (*func)(struct rcu_head *rhp)) | 537 | void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func) |
538 | { | 538 | { |
539 | unsigned long flags; | 539 | unsigned long flags; |
540 | bool needwake; | 540 | bool needwake; |