kernel_optimize_test/kernel/power
Nicholas Piggin 9ca12ac04b kernel/cpu: Allow non-zero CPU to be primary for suspend / kexec freeze
This patch provides an arch option, ARCH_SUSPEND_NONZERO_CPU, to
opt-in to allowing suspend to occur on one of the housekeeping CPUs
rather than hardcoded CPU0.

This will allow CPU0 to be a nohz_full CPU with a later change.

It may be possible for platforms with hardware/firmware restrictions
on suspend/wake effectively support this by handing off the final
stage to CPU0 when kernel housekeeping is no longer required. Another
option is to make housekeeping / nohz_full mask dynamic at runtime,
but the complexity could not be justified at this time.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J . Wysocki <rafael.j.wysocki@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lkml.kernel.org/r/20190411033448.20842-4-npiggin@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2019-05-03 19:42:58 +02:00
..
autosleep.c
console.c
energy_model.c PM / EM: Expose the Energy Model in debugfs 2019-01-23 23:07:57 +01:00
hibernate.c power/suspend: Add function to disable secondaries for suspend 2019-05-03 19:42:41 +02:00
Kconfig kernel/cpu: Allow non-zero CPU to be primary for suspend / kexec freeze 2019-05-03 19:42:58 +02:00
main.c PM / sleep: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-12 23:23:58 +01:00
Makefile PM: Introduce an Energy Model management framework 2018-12-11 15:16:58 +01:00
power.h
poweroff.c
process.c PM / sleep: Show freezing tasks that caused a suspend abort 2018-09-10 12:09:10 +02:00
qos.c PM: QoS: no need to check return value of debugfs_create functions 2019-01-22 23:12:12 +01:00
snapshot.c treewide: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:02 -07:00
suspend_test.c
suspend.c power/suspend: Add function to disable secondaries for suspend 2019-05-03 19:42:41 +02:00
swap.c PM / hibernate: cast PAGE_SIZE to int when comparing with error code 2018-07-02 11:48:30 +02:00
user.c PM / reboot: Eliminate race between reboot and suspend 2018-08-06 12:35:20 +02:00
wakelock.c PM / wakeup: Only update last time for active wakeup sources 2018-05-10 11:39:19 +02:00