@@ -103,6 +103,7 @@ module_param(rcu_task_stall_timeout, int, 0644);
103
103
#define RTGS_WAIT_READERS 9
104
104
#define RTGS_INVOKE_CBS 10
105
105
#define RTGS_WAIT_CBS 11
106
+ #ifndef CONFIG_TINY_RCU
106
107
static const char * const rcu_tasks_gp_state_names [] = {
107
108
"RTGS_INIT" ,
108
109
"RTGS_WAIT_WAIT_CBS" ,
@@ -117,6 +118,7 @@ static const char * const rcu_tasks_gp_state_names[] = {
117
118
"RTGS_INVOKE_CBS" ,
118
119
"RTGS_WAIT_CBS" ,
119
120
};
121
+ #endif /* #ifndef CONFIG_TINY_RCU */
120
122
121
123
////////////////////////////////////////////////////////////////////////
122
124
//
@@ -129,6 +131,7 @@ static void set_tasks_gp_state(struct rcu_tasks *rtp, int newstate)
129
131
rtp -> gp_jiffies = jiffies ;
130
132
}
131
133
134
+ #ifndef CONFIG_TINY_RCU
132
135
/* Return state name. */
133
136
static const char * tasks_gp_state_getname (struct rcu_tasks * rtp )
134
137
{
@@ -139,6 +142,7 @@ static const char *tasks_gp_state_getname(struct rcu_tasks *rtp)
139
142
return "???" ;
140
143
return rcu_tasks_gp_state_names [j ];
141
144
}
145
+ #endif /* #ifndef CONFIG_TINY_RCU */
142
146
143
147
// Enqueue a callback for the specified flavor of Tasks RCU.
144
148
static void call_rcu_tasks_generic (struct rcu_head * rhp , rcu_callback_t func ,
@@ -268,6 +272,7 @@ static void __init rcu_tasks_bootup_oddness(void)
268
272
269
273
#endif /* #ifndef CONFIG_TINY_RCU */
270
274
275
+ #ifndef CONFIG_TINY_RCU
271
276
/* Dump out rcutorture-relevant state common to all RCU-tasks flavors. */
272
277
static void show_rcu_tasks_generic_gp_kthread (struct rcu_tasks * rtp , char * s )
273
278
{
@@ -281,6 +286,7 @@ static void show_rcu_tasks_generic_gp_kthread(struct rcu_tasks *rtp, char *s)
281
286
".C" [!!data_race (rtp -> cbs_head )],
282
287
s );
283
288
}
289
+ #endif /* #ifndef CONFIG_TINY_RCU */
284
290
285
291
static void exit_tasks_rcu_finish_trace (struct task_struct * t );
286
292
@@ -557,10 +563,12 @@ static int __init rcu_spawn_tasks_kthread(void)
557
563
}
558
564
core_initcall (rcu_spawn_tasks_kthread );
559
565
566
+ #ifndef CONFIG_TINY_RCU
560
567
static void show_rcu_tasks_classic_gp_kthread (void )
561
568
{
562
569
show_rcu_tasks_generic_gp_kthread (& rcu_tasks , "" );
563
570
}
571
+ #endif /* #ifndef CONFIG_TINY_RCU */
564
572
565
573
/* Do the srcu_read_lock() for the above synchronize_srcu(). */
566
574
void exit_tasks_rcu_start (void ) __acquires (& tasks_rcu_exit_srcu )
@@ -682,10 +690,12 @@ static int __init rcu_spawn_tasks_rude_kthread(void)
682
690
}
683
691
core_initcall (rcu_spawn_tasks_rude_kthread );
684
692
693
+ #ifndef CONFIG_TINY_RCU
685
694
static void show_rcu_tasks_rude_gp_kthread (void )
686
695
{
687
696
show_rcu_tasks_generic_gp_kthread (& rcu_tasks_rude , "" );
688
697
}
698
+ #endif /* #ifndef CONFIG_TINY_RCU */
689
699
690
700
#else /* #ifdef CONFIG_TASKS_RUDE_RCU */
691
701
static void show_rcu_tasks_rude_gp_kthread (void ) {}
@@ -1164,6 +1174,7 @@ static int __init rcu_spawn_tasks_trace_kthread(void)
1164
1174
}
1165
1175
core_initcall (rcu_spawn_tasks_trace_kthread );
1166
1176
1177
+ #ifndef CONFIG_TINY_RCU
1167
1178
static void show_rcu_tasks_trace_gp_kthread (void )
1168
1179
{
1169
1180
char buf [64 ];
@@ -1174,18 +1185,21 @@ static void show_rcu_tasks_trace_gp_kthread(void)
1174
1185
data_race (n_heavy_reader_attempts ));
1175
1186
show_rcu_tasks_generic_gp_kthread (& rcu_tasks_trace , buf );
1176
1187
}
1188
+ #endif /* #ifndef CONFIG_TINY_RCU */
1177
1189
1178
1190
#else /* #ifdef CONFIG_TASKS_TRACE_RCU */
1179
1191
static void exit_tasks_rcu_finish_trace (struct task_struct * t ) { }
1180
1192
static inline void show_rcu_tasks_trace_gp_kthread (void ) {}
1181
1193
#endif /* #else #ifdef CONFIG_TASKS_TRACE_RCU */
1182
1194
1195
+ #ifndef CONFIG_TINY_RCU
1183
1196
void show_rcu_tasks_gp_kthreads (void )
1184
1197
{
1185
1198
show_rcu_tasks_classic_gp_kthread ();
1186
1199
show_rcu_tasks_rude_gp_kthread ();
1187
1200
show_rcu_tasks_trace_gp_kthread ();
1188
1201
}
1202
+ #endif /* #ifndef CONFIG_TINY_RCU */
1189
1203
1190
1204
#else /* #ifdef CONFIG_TASKS_RCU_GENERIC */
1191
1205
static inline void rcu_tasks_bootup_oddness (void ) {}
0 commit comments