hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/rcupdate.h
....@@ -54,11 +54,6 @@
5454 * types of kernel builds, the rcu_read_lock() nesting depth is unknowable.
5555 */
5656 #define rcu_preempt_depth() (current->rcu_read_lock_nesting)
57
-#ifndef CONFIG_PREEMPT_RT
58
-#define sched_rcu_preempt_depth() rcu_preempt_depth()
59
-#else
60
-static inline int sched_rcu_preempt_depth(void) { return 0; }
61
-#endif
6257
6358 #else /* #ifdef CONFIG_PREEMPT_RCU */
6459
....@@ -83,8 +78,6 @@
8378 {
8479 return 0;
8580 }
86
-
87
-#define sched_rcu_preempt_depth() rcu_preempt_depth()
8881
8982 #endif /* #else #ifdef CONFIG_PREEMPT_RCU */
9083
....@@ -336,8 +329,7 @@
336329 #define rcu_sleep_check() \
337330 do { \
338331 rcu_preempt_sleep_check(); \
339
- if (!IS_ENABLED(CONFIG_PREEMPT_RT)) \
340
- RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map), \
332
+ RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map), \
341333 "Illegal context switch in RCU-bh read-side critical section"); \
342334 RCU_LOCKDEP_WARN(lock_is_held(&rcu_sched_lock_map), \
343335 "Illegal context switch in RCU-sched read-side critical section"); \