예제 #1
0
int __init exynos_powermode_init(void)
{
	exynos_idle_clock_down(true, LITTLE);
	exynos_idle_clock_down(true, BIG);

	init_c2_state_mask();

	exynos_pmu_cal_sys_init();

	exynos_lpm_dt_init();

	if (sysfs_create_file(power_kobj, &lpc_attribute.attr))
		pr_err("%s: failed to create sysfs to control LPC\n", __func__);

	return 0;
}
int __init exynos_powermode_init(void)
{
	store_boot_cpu_info();

	if (IS_ENABLED(CONFIG_CPU_IDLE_EXYNOS))
		exynos_idle_clock_down(true);

	init_cpd_state_mask();

	exynos_lpm_dt_init();

	exynos_pmu_cal_sys_init();

	if (sysfs_create_file(power_kobj, &lpc_attribute.attr))
		pr_err("%s: failed to create sysfs to control LPC\n", __func__);

#ifdef CONFIG_ARM_EXYNOS_SMP_CPUFREQ
	disable_c3_idle = exynos_disable_cluster_power_down;
#endif
	return 0;
}