From: Youngtae Lee Date: Wed, 16 May 2018 11:59:53 +0000 (+0900) Subject: cpu: Add CPUHP_EXYNOS_BOOST_CTRL_PRE event. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9245196944a30f7274de5ee8cf3b827442f65155;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpu: Add CPUHP_EXYNOS_BOOST_CTRL_PRE event. Change-Id: I062f4fe5abae7fed4466b70a3e6176a3bf405249 Signed-off-by: Youngtae Lee --- diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index 9e5782073ad7..7d8d608f4e63 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h @@ -25,7 +25,7 @@ enum cpuhp_state { CPUHP_INVALID = -1, CPUHP_OFFLINE = 0, - CPUHP_EXYNOS_BOOST_CTRL, + CPUHP_EXYNOS_BOOST_CTRL_POST, CPUHP_CREATE_THREADS, CPUHP_PERF_PREPARE, CPUHP_PERF_X86_PREPARE, @@ -172,6 +172,7 @@ enum cpuhp_state { CPUHP_AP_X86_KVM_CLK_ONLINE, CPUHP_AP_EXYNOS_IDLE_CTRL, CPUHP_AP_ACTIVE, + CPUHP_EXYNOS_BOOST_CTRL_PRE, CPUHP_ONLINE, }; diff --git a/kernel/cpu.c b/kernel/cpu.c index e76e357144da..33877e971a8e 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -30,6 +30,8 @@ #include #include +#include + #include #define CREATE_TRACE_POINTS #include @@ -1055,6 +1057,7 @@ static int __ref _cpus_down(struct cpumask cpus, int tasks_frozen, for_each_cpu(cpu, &ap_work_cpus) { struct cpuhp_cpu_state *st = per_cpu_ptr(&cpuhp_state, cpu); + emc_cpu_pre_off_callback(cpu); set_cpu_active(cpu, false); st->state = CPUHP_AP_EXYNOS_IDLE_CTRL; }