diff options
Diffstat (limited to 'include/linux/rcupdate.h')
| -rw-r--r-- | include/linux/rcupdate.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 86f1f5e43e3..bfd289aff57 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
| @@ -52,11 +52,15 @@ struct rcu_head { | |||
| 52 | void (*func)(struct rcu_head *head); | 52 | void (*func)(struct rcu_head *head); |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | #ifdef CONFIG_CLASSIC_RCU | 55 | #if defined(CONFIG_CLASSIC_RCU) |
| 56 | #include <linux/rcuclassic.h> | 56 | #include <linux/rcuclassic.h> |
| 57 | #else /* #ifdef CONFIG_CLASSIC_RCU */ | 57 | #elif defined(CONFIG_TREE_RCU) |
| 58 | #include <linux/rcutree.h> | ||
| 59 | #elif defined(CONFIG_PREEMPT_RCU) | ||
| 58 | #include <linux/rcupreempt.h> | 60 | #include <linux/rcupreempt.h> |
| 59 | #endif /* #else #ifdef CONFIG_CLASSIC_RCU */ | 61 | #else |
| 62 | #error "Unknown RCU implementation specified to kernel configuration" | ||
| 63 | #endif /* #else #if defined(CONFIG_CLASSIC_RCU) */ | ||
| 60 | 64 | ||
| 61 | #define RCU_HEAD_INIT { .next = NULL, .func = NULL } | 65 | #define RCU_HEAD_INIT { .next = NULL, .func = NULL } |
| 62 | #define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT | 66 | #define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT |
