diff options
| -rw-r--r-- | include/linux/rcupreempt.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/rcupreempt.h b/include/linux/rcupreempt.h index addb5e282f39..3e05c09b54a2 100644 --- a/include/linux/rcupreempt.h +++ b/include/linux/rcupreempt.h | |||
| @@ -57,7 +57,13 @@ static inline void rcu_qsctr_inc(int cpu) | |||
| 57 | rdssp->sched_qs++; | 57 | rdssp->sched_qs++; |
| 58 | } | 58 | } |
| 59 | #define rcu_bh_qsctr_inc(cpu) | 59 | #define rcu_bh_qsctr_inc(cpu) |
| 60 | #define call_rcu_bh(head, rcu) call_rcu(head, rcu) | 60 | |
| 61 | /* | ||
| 62 | * Someone might want to pass call_rcu_bh as a function pointer. | ||
| 63 | * So this needs to just be a rename and not a macro function. | ||
| 64 | * (no parentheses) | ||
| 65 | */ | ||
| 66 | #define call_rcu_bh call_rcu | ||
| 61 | 67 | ||
| 62 | /** | 68 | /** |
| 63 | * call_rcu_sched - Queue RCU callback for invocation after sched grace period. | 69 | * call_rcu_sched - Queue RCU callback for invocation after sched grace period. |
