*--------------------------- (XOR)
* 0 0 0 0 0 1 0 0
*/
-#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
cpuidle_profile_idle_ip(reg_index, ((val & ~mask) ^ ~mask));
-#endif
}
return ret;
cpumask_and(&mask, cpu_coregroup_mask(cpu), cpu_online_mask);
if (cpumask_weight(&mask) == 0)
- cluster_enable(1);
+ cluster_enable(cpu);
cpu_enable(cpu);
cpumask_and(&mask, cpu_coregroup_mask(cpu), cpu_online_mask);
if (cpumask_weight(&mask) == 0)
- cluster_disable(1);
+ cluster_disable(cpu);
return 0;
}
dbg_snapshot_cpuidle(mode->name, 0, 0, DSS_FLAG_IN);
set_state_powerdown(mode);
-#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
cpuidle_profile_group_idle_enter(mode->id);
-#endif
return 1;
}
static void exit_mode(int cpu, struct power_mode *mode, int cancel)
{
-#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
cpuidle_profile_group_idle_exit(mode->id, cancel);
-#endif
/*
* Configure settings to exit power mode. This is executed by the
/* Connect power mode to the cpus in the power domain */
for_each_cpu(cpu, &mode->siblings)
add_mode(per_cpu(cpupm, cpu).modes, mode);
-#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE
+
cpuidle_profile_group_idle_register(mode->id, mode->name);
-#endif
}
if (attr_count)