]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rcu: Replace preempt.h with sched.h in include/linux/rcupdate.h
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 17 Sep 2025 06:09:14 +0000 (14:09 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 25 Sep 2025 07:57:15 +0000 (09:57 +0200)
In the next commit, we will move the definition of migrate_enable() and
migrate_disable() to linux/sched.h. However,
migrate_enable/migrate_disable will be used in commit
1b93c03fb319 ("rcu: add rcu_read_lock_dont_migrate()") in bpf-next tree.

In order to fix potential compiling error, replace linux/preempt.h with
linux/sched.h in include/linux/rcupdate.h.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
include/linux/rcupdate.h

index 120536f4c6eb1d8f91afc16111d976f7a14ef4fc..8f346c847ee51343fd63184dfc2b21f129328dd4 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/compiler.h>
 #include <linux/atomic.h>
 #include <linux/irqflags.h>
-#include <linux/preempt.h>
+#include <linux/sched.h>
 #include <linux/bottom_half.h>
 #include <linux/lockdep.h>
 #include <linux/cleanup.h>