diff options
author | Thomas Gleixner <[email protected]> | 2017-05-16 20:42:39 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-05-23 10:01:36 +0200 |
commit | 8cdde385c7a33afbe13fd71351da0968540fa566 (patch) | |
tree | 03d335d291b6a999325b691af766e06c49fecd8c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9762b33dc31c67e34b36ba4e787e64084b3136ff (diff) |
mm: Adjust system_state check
To enable smp_processor_id() and might_sleep() debug checks earlier, it's
required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING.
get_nid_for_pfn() checks for system_state == BOOTING to decide whether to
use early_pfn_to_nid() when CONFIG_DEFERRED_STRUCT_PAGE_INIT=y.
That check is dubious, because the switch to state RUNNING happes way after
page_alloc_init_late() has been invoked.
Change the check to less than RUNNING state so it covers the new
intermediate states as well.
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mel Gorman <[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]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions