]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/cpuidle/cpuidle-cps.c
MIPS: Unify checks for sibling CPUs
[mirror_ubuntu-bionic-kernel.git] / drivers / cpuidle / cpuidle-cps.c
index 6041b6104f3dc6259bfe37389bf7093675a6d28d..72b5e47286b4b7bb3747fcbf91623259febba0ab 100644 (file)
@@ -37,7 +37,7 @@ static int cps_nc_enter(struct cpuidle_device *dev,
         * TODO: don't treat core 0 specially, just prevent the final core
         * TODO: remap interrupt affinity temporarily
         */
-       if (!cpu_core(&cpu_data[dev->cpu]) && (index > STATE_NC_WAIT))
+       if (cpus_are_siblings(0, dev->cpu) && (index > STATE_NC_WAIT))
                index = STATE_NC_WAIT;
 
        /* Select the appropriate cps_pm_state */