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/spinlock.h |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/kernel/include/linux/spinlock.h b/kernel/include/linux/spinlock.h
index c3c7029..7989784 100644
--- a/kernel/include/linux/spinlock.h
+++ b/kernel/include/linux/spinlock.h
@@ -309,11 +309,7 @@
 })
 
 /* Include rwlock functions */
-#ifdef CONFIG_PREEMPT_RT
-# include <linux/rwlock_rt.h>
-#else
-# include <linux/rwlock.h>
-#endif
+#include <linux/rwlock.h>
 
 /*
  * Pull the _spin_*()/_read_*()/_write_*() functions/declarations:
@@ -323,10 +319,6 @@
 #else
 # include <linux/spinlock_api_up.h>
 #endif
-
-#ifdef CONFIG_PREEMPT_RT
-# include <linux/spinlock_rt.h>
-#else /* PREEMPT_RT */
 
 /*
  * Map the spin_lock functions to the raw variants for PREEMPT_RT=n
@@ -461,8 +453,6 @@
 }
 
 #define assert_spin_locked(lock)	assert_raw_spin_locked(&(lock)->rlock)
-
-#endif /* !PREEMPT_RT */
 
 /*
  * Pull the atomic_t declaration:

--
Gitblit v1.6.2