lkml.org 
[lkml]   [2020]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 03/26] psci: Export psci_cpu_suspend_feature
    Date
    KVM's PSCI proxy could probe the firmware to establish features
    supported for CPU_SUSPEND, but since the kernel's PSCI driver already
    does that, and other information about the driver is already exported,
    export the value of psci_cpu_suspend_feature as well for convenience.

    Signed-off-by: David Brazdil <dbrazdil@google.com>
    ---
    drivers/firmware/psci/psci.c | 2 +-
    include/linux/psci.h | 2 ++
    2 files changed, 3 insertions(+), 1 deletion(-)

    diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c
    index ffcb88f60e21..b6ad237b1518 100644
    --- a/drivers/firmware/psci/psci.c
    +++ b/drivers/firmware/psci/psci.c
    @@ -71,7 +71,7 @@ u32 psci_function_id[PSCI_FN_MAX];
    (PSCI_1_0_EXT_POWER_STATE_ID_MASK | \
    PSCI_1_0_EXT_POWER_STATE_TYPE_MASK)

    -static u32 psci_cpu_suspend_feature;
    +u32 psci_cpu_suspend_feature;
    static bool psci_system_reset2_supported;

    static inline bool psci_has_ext_power_state(void)
    diff --git a/include/linux/psci.h b/include/linux/psci.h
    index 877d844ee6d9..a5832d91d493 100644
    --- a/include/linux/psci.h
    +++ b/include/linux/psci.h
    @@ -29,6 +29,8 @@ bool psci_has_osi_support(void);
    */
    extern int psci_driver_version;

    +extern u32 psci_cpu_suspend_feature;
    +
    enum psci_function {
    PSCI_FN_CPU_SUSPEND,
    PSCI_FN_CPU_ON,
    --
    2.29.1.341.ge80a0c044ae-goog
    \
     
     \ /
      Last update: 2020-11-04 19:39    [W:2.480 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site