]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/powerpc/platforms/powernv/idle.c
powerpc/powernv: set power_save func after the idle states are initialized
[mirror_ubuntu-artful-kernel.git] / arch / powerpc / platforms / powernv / idle.c
index fcc8b6861b63e60b809618b62c39155fb359346d..8a77f5c4159e31de87231770323df1e7c792c05f 100644 (file)
@@ -29,7 +29,7 @@
 
 static u32 supported_cpuidle_states;
 
-int pnv_save_sprs_for_winkle(void)
+static int pnv_save_sprs_for_winkle(void)
 {
        int cpu;
        int rc;
@@ -285,6 +285,9 @@ static int __init pnv_init_idle_states(void)
        }
 
        pnv_alloc_idle_core_states();
+
+       if (supported_cpuidle_states & OPAL_PM_NAP_ENABLED)
+               ppc_md.power_save = power7_idle;
 out_free:
        kfree(flags);
 out: