mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
psci: Add accessor for psci_0_1_function_ids
Make it possible to retrieve a copy of the psci_0_1_function_ids struct. This is useful for KVM if it is configured to intercept host's PSCI SMCs. Signed-off-by: David Brazdil <dbrazdil@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20201202184122.26046-7-dbrazdil@google.com
This commit is contained in:
parent
82ac62d165
commit
6df3e14436
2 changed files with 14 additions and 7 deletions
|
@ -34,6 +34,15 @@ struct psci_operations {
|
|||
|
||||
extern struct psci_operations psci_ops;
|
||||
|
||||
struct psci_0_1_function_ids {
|
||||
u32 cpu_suspend;
|
||||
u32 cpu_on;
|
||||
u32 cpu_off;
|
||||
u32 migrate;
|
||||
};
|
||||
|
||||
struct psci_0_1_function_ids get_psci_0_1_function_ids(void);
|
||||
|
||||
#if defined(CONFIG_ARM_PSCI_FW)
|
||||
int __init psci_dt_init(void);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue