]> Git Repo - linux.git/commit
init: Introduce SYSTEM_SCHEDULING state
authorThomas Gleixner <[email protected]>
Tue, 16 May 2017 18:42:47 +0000 (20:42 +0200)
committerIngo Molnar <[email protected]>
Tue, 23 May 2017 08:01:38 +0000 (10:01 +0200)
commit69a78ff226fe0241ab6cb9dd961667be477e3cf7
tree0492721a52622ff791f2166e4a41245e7a3550b6
parentc6202adf3a0969514299cf10ff07376a84ad09bb
init: Introduce SYSTEM_SCHEDULING state

might_sleep() debugging and smp_processor_id() debugging should be active
right after the scheduler starts working. The init task can invoke
smp_processor_id() from preemptible context as it is pinned on the boot cpu
until sched_smp_init() removes the pinning and lets it schedule on all non
isolated cpus.

Add a new state which allows to enable those checks earlier and add it to
the xen do_poweroff() function.

No functional change.

Tested-by: Mark Rutland <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/xen/manage.c
include/linux/kernel.h
This page took 0.058647 seconds and 4 git commands to generate.