Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rcu: Replace preempt.h with sched.h in include/linux/rcupdate.h

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>

authored by

Menglong Dong and committed by
Peter Zijlstra
88a90315 35561bab

+1 -1
+1 -1
include/linux/rcupdate.h
··· 24 24 #include <linux/compiler.h> 25 25 #include <linux/atomic.h> 26 26 #include <linux/irqflags.h> 27 - #include <linux/preempt.h> 27 + #include <linux/sched.h> 28 28 #include <linux/bottom_half.h> 29 29 #include <linux/lockdep.h> 30 30 #include <linux/cleanup.h>