cpu: Add CPUHP_EXYNOS_BOOST_CTRL_PRE event.
authorYoungtae Lee <yt0729.lee@samsung.com>
Wed, 16 May 2018 11:59:53 +0000 (20:59 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:18 +0000 (14:59 +0900)
Change-Id: I062f4fe5abae7fed4466b70a3e6176a3bf405249
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
include/linux/cpuhotplug.h
kernel/cpu.c

index 9e5782073ad7f65f0e515eca168854c65bb8f465..7d8d608f4e63577c919ffb6415f37451260f970d 100644 (file)
@@ -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,
 };
 
index e76e357144da90127d33afe8e5107bd6f2770aca..33877e971a8ef73a1ba2941b6c9e023ce6751a96 100644 (file)
@@ -30,6 +30,8 @@
 #include <linux/slab.h>
 #include <linux/cpuset.h>
 
+#include <soc/samsung/exynos-emc.h>
+
 #include <trace/events/power.h>
 #define CREATE_TRACE_POINTS
 #include <trace/events/cpuhp.h>
@@ -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;
        }