File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,7 @@ struct raw_notifier_head {
73
73
74
74
struct srcu_notifier_head {
75
75
struct mutex mutex ;
76
- #ifdef CONFIG_TREE_SRCU
77
76
struct srcu_usage srcuu ;
78
- #endif
79
77
struct srcu_struct srcu ;
80
78
struct notifier_block __rcu * head ;
81
79
};
@@ -106,22 +104,13 @@ extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);
106
104
#define RAW_NOTIFIER_INIT (name ) { \
107
105
.head = NULL }
108
106
109
- #ifdef CONFIG_TREE_SRCU
110
107
#define SRCU_NOTIFIER_INIT (name , pcpu ) \
111
108
{ \
112
109
.mutex = __MUTEX_INITIALIZER(name.mutex), \
113
110
.head = NULL, \
114
111
.srcuu = __SRCU_USAGE_INIT(name.srcuu), \
115
112
.srcu = __SRCU_STRUCT_INIT(name.srcu, name.srcuu, pcpu), \
116
113
}
117
- #else
118
- #define SRCU_NOTIFIER_INIT (name , pcpu ) \
119
- { \
120
- .mutex = __MUTEX_INITIALIZER(name.mutex), \
121
- .head = NULL, \
122
- .srcu = __SRCU_STRUCT_INIT(name.srcu, name.srcuu, pcpu), \
123
- }
124
- #endif
125
114
126
115
#define ATOMIC_NOTIFIER_HEAD (name ) \
127
116
struct atomic_notifier_head name = \
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ void srcu_drive_gp(struct work_struct *wp);
48
48
#define DEFINE_STATIC_SRCU (name ) \
49
49
static struct srcu_struct name = __SRCU_STRUCT_INIT(name, name, name)
50
50
51
+ // Dummy structure for srcu_notifier_head.
52
+ struct srcu_usage { };
53
+ #define __SRCU_USAGE_INIT (name ) { }
54
+
51
55
void synchronize_srcu (struct srcu_struct * ssp );
52
56
53
57
/*
You can’t perform that action at this time.
0 commit comments