[COMMON] thermal: core: remove HMP dependencies
authorEunseok Choi <es10.choi@samsung.com>
Tue, 5 Sep 2017 10:27:19 +0000 (19:27 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:22:05 +0000 (17:22 +0900)
Change-Id: Ibc1784dad601e79b0cae82caf6e733bac3e869d6
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/thermal_core.c

index 44c2ce8ca41074b0004edd195215489080bdf93b..4ec25e9b21df044f9127fd75f06f11614f347fc2 100644 (file)
@@ -53,13 +53,11 @@ static bool power_off_triggered;
 
 static struct workqueue_struct *thermal_wq;
 
-#ifdef CONFIG_SCHED_HMP
 static void start_poll_queue(struct thermal_zone_device *tz, int delay)
 {
        mod_delayed_work(thermal_wq, &tz->poll_queue,
                        msecs_to_jiffies(delay));
 }
-#endif
 
 static struct thermal_governor *def_governor;
 
@@ -304,19 +302,10 @@ static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,
                                            int delay)
 {
        if (delay > 1000)
-#ifdef CONFIG_SCHED_HMP
                start_poll_queue(tz, delay);
-#else
-               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
-                                round_jiffies(msecs_to_jiffies(delay)));
-#endif
+
        else if (delay)
-#ifdef CONFIG_SCHED_HMP
                start_poll_queue(tz, delay);
-#else
-               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
-                                msecs_to_jiffies(delay));
-#endif
        else
                cancel_delayed_work(&tz->poll_queue);
 }