diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-09-14 21:13:45 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-28 00:30:02 -0500 |
commit | ab101cb041a985f99c9e05977d4d43ad4baaeef8 (patch) | |
tree | 5319cfb04f4ca70e364958edf85a75904685d97f /include | |
parent | 210cb11e02cb77c060dbecb50e1aa185913e1e1d (diff) | |
download | skiboot-ab101cb041a985f99c9e05977d4d43ad4baaeef8.zip skiboot-ab101cb041a985f99c9e05977d4d43ad4baaeef8.tar.gz skiboot-ab101cb041a985f99c9e05977d4d43ad4baaeef8.tar.bz2 |
cpu: idle split pm enable into sreset and ipi components
pm idle requires the system reset vector and IPI facilities before
it can be enabled. Split these out and manage them individually.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/cpu.h b/include/cpu.h index 77419ca..168fa99 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -263,8 +263,12 @@ extern void cpu_process_jobs(void); extern void cpu_process_local_jobs(void); /* Check if there's any job pending */ bool cpu_check_jobs(struct cpu_thread *cpu); -/* Enable/disable PM */ -void cpu_set_pm_enable(bool pm_enabled); + +/* OPAL sreset vector in place at 0x100 */ +void cpu_set_sreset_enable(bool sreset_enabled); + +/* IPI for PM modes is enabled */ +void cpu_set_ipi_enable(bool sreset_enabled); static inline void cpu_give_self_os(void) { |