mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
sched/preempt: Use CONFIG_PREEMPTION where appropriate
CONFIG_PREEMPTION is selected by CONFIG_PREEMPT and by CONFIG_PREEMPT_RT. Both PREEMPT and PREEMPT_RT require the same functionality which today depends on CONFIG_PREEMPT. Switch the preemption code, scheduler and init task over to use CONFIG_PREEMPTION. That's the first step towards RT in that area. The more complex changes are coming separately. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Paul E. McKenney <paulmck@linux.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/20190726212124.117528401@linutronix.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
2a11c76e53
commit
c1a280b68d
8 changed files with 20 additions and 20 deletions
|
@ -433,7 +433,7 @@ noinline void __ref rest_init(void)
|
|||
|
||||
/*
|
||||
* Enable might_sleep() and smp_processor_id() checks.
|
||||
* They cannot be enabled earlier because with CONFIG_PREEMPT=y
|
||||
* They cannot be enabled earlier because with CONFIG_PREEMPTION=y
|
||||
* kernel_thread() would trigger might_sleep() splats. With
|
||||
* CONFIG_PREEMPT_VOLUNTARY=y the init task might have scheduled
|
||||
* already, but it's stuck on the kthreadd_done completion.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue