Skip to content

Commit 88a9031

Browse files
image-dragonPeter Zijlstra
authored andcommitted
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 1b93c03 ("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>
1 parent 35561ba commit 88a9031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/rcupdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <linux/compiler.h>
2525
#include <linux/atomic.h>
2626
#include <linux/irqflags.h>
27-
#include <linux/preempt.h>
27+
#include <linux/sched.h>
2828
#include <linux/bottom_half.h>
2929
#include <linux/lockdep.h>
3030
#include <linux/cleanup.h>

0 commit comments

Comments
 (0)