diff options
| author | Mathieu Desnoyers <[email protected]> | 2010-04-17 08:48:41 -0400 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2010-08-19 17:18:03 -0700 |
| commit | 5e8067adfdbaf97039a97540765b1e16eb8d61cc (patch) | |
| tree | 3648ffdd0265024baff2a0136d01b02bede19f63 /include/linux | |
| parent | 4d2deb40b20c2608486598364e63e37b09a9ac2f (diff) | |
rcu head remove init
RCU heads really don't need to be initialized. Their state before call_rcu()
really does not matter.
We need to keep init/destroy_rcu_head_on_stack() though, since we want
debugobjects to be able to keep track of these objects.
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
CC: David S. Miller <[email protected]>
CC: "Paul E. McKenney" <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: Alexey Dobriyan <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/rcupdate.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 3e1b6625553b..27b44b3e3024 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -75,12 +75,6 @@ extern void rcu_init(void); #error "Unknown RCU implementation specified to kernel configuration" #endif -#define RCU_HEAD_INIT { .next = NULL, .func = NULL } -#define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT -#define INIT_RCU_HEAD(ptr) do { \ - (ptr)->next = NULL; (ptr)->func = NULL; \ -} while (0) - /* * init_rcu_head_on_stack()/destroy_rcu_head_on_stack() are needed for dynamic * initialization and destruction of rcu_head on the stack. rcu_head structures |