From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 08:20:59 +0000
Subject: [PATCH] kernel_5.10 no rt
---
kernel/include/linux/rcupdate.h | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/kernel/include/linux/rcupdate.h b/kernel/include/linux/rcupdate.h
index 1effcae..095b3b3 100644
--- a/kernel/include/linux/rcupdate.h
+++ b/kernel/include/linux/rcupdate.h
@@ -54,11 +54,6 @@
* types of kernel builds, the rcu_read_lock() nesting depth is unknowable.
*/
#define rcu_preempt_depth() (current->rcu_read_lock_nesting)
-#ifndef CONFIG_PREEMPT_RT
-#define sched_rcu_preempt_depth() rcu_preempt_depth()
-#else
-static inline int sched_rcu_preempt_depth(void) { return 0; }
-#endif
#else /* #ifdef CONFIG_PREEMPT_RCU */
@@ -83,8 +78,6 @@
{
return 0;
}
-
-#define sched_rcu_preempt_depth() rcu_preempt_depth()
#endif /* #else #ifdef CONFIG_PREEMPT_RCU */
@@ -336,8 +329,7 @@
#define rcu_sleep_check() \
do { \
rcu_preempt_sleep_check(); \
- if (!IS_ENABLED(CONFIG_PREEMPT_RT)) \
- RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map), \
+ RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map), \
"Illegal context switch in RCU-bh read-side critical section"); \
RCU_LOCKDEP_WARN(lock_is_held(&rcu_sched_lock_map), \
"Illegal context switch in RCU-sched read-side critical section"); \
--
Gitblit v1.6.2