@@ -522,12 +522,18 @@ static inline void show_rcu_tasks_gp_kthreads(void) {}
522522
523523#ifdef CONFIG_TASKS_RCU
524524struct task_struct * get_rcu_tasks_gp_kthread (void );
525+ void rcu_tasks_get_gp_data (int * flags , unsigned long * gp_seq );
525526#endif // # ifdef CONFIG_TASKS_RCU
526527
527528#ifdef CONFIG_TASKS_RUDE_RCU
528529struct task_struct * get_rcu_tasks_rude_gp_kthread (void );
530+ void rcu_tasks_rude_get_gp_data (int * flags , unsigned long * gp_seq );
529531#endif // # ifdef CONFIG_TASKS_RUDE_RCU
530532
533+ #ifdef CONFIG_TASKS_TRACE_RCU
534+ void rcu_tasks_trace_get_gp_data (int * flags , unsigned long * gp_seq );
535+ #endif
536+
531537#ifdef CONFIG_TASKS_RCU_GENERIC
532538void tasks_cblist_init_generic (void );
533539#else /* #ifdef CONFIG_TASKS_RCU_GENERIC */
@@ -557,17 +563,15 @@ static inline void rcu_set_jiffies_lazy_flush(unsigned long j) { }
557563#endif
558564
559565#if defined(CONFIG_TREE_RCU )
560- void rcutorture_get_gp_data (enum rcutorture_type test_type , int * flags ,
561- unsigned long * gp_seq );
566+ void rcutorture_get_gp_data (int * flags , unsigned long * gp_seq );
562567void do_trace_rcu_torture_read (const char * rcutorturename ,
563568 struct rcu_head * rhp ,
564569 unsigned long secs ,
565570 unsigned long c_old ,
566571 unsigned long c );
567572void rcu_gp_set_torture_wait (int duration );
568573#else
569- static inline void rcutorture_get_gp_data (enum rcutorture_type test_type ,
570- int * flags , unsigned long * gp_seq )
574+ static inline void rcutorture_get_gp_data (int * flags , unsigned long * gp_seq )
571575{
572576 * flags = 0 ;
573577 * gp_seq = 0 ;
@@ -587,20 +591,16 @@ static inline void rcu_gp_set_torture_wait(int duration) { }
587591
588592#ifdef CONFIG_TINY_SRCU
589593
590- static inline void srcutorture_get_gp_data (enum rcutorture_type test_type ,
591- struct srcu_struct * sp , int * flags ,
594+ static inline void srcutorture_get_gp_data (struct srcu_struct * sp , int * flags ,
592595 unsigned long * gp_seq )
593596{
594- if (test_type != SRCU_FLAVOR )
595- return ;
596597 * flags = 0 ;
597598 * gp_seq = sp -> srcu_idx ;
598599}
599600
600601#elif defined(CONFIG_TREE_SRCU )
601602
602- void srcutorture_get_gp_data (enum rcutorture_type test_type ,
603- struct srcu_struct * sp , int * flags ,
603+ void srcutorture_get_gp_data (struct srcu_struct * sp , int * flags ,
604604 unsigned long * gp_seq );
605605
606606#endif
0 commit comments