From: Eunseok Choi Date: Tue, 5 Sep 2017 10:27:19 +0000 (+0900) Subject: [COMMON] thermal: core: remove HMP dependencies X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea5e500734061f97fd08d22157fa26e0a986caaa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: core: remove HMP dependencies Change-Id: Ibc1784dad601e79b0cae82caf6e733bac3e869d6 Signed-off-by: Eunseok Choi --- diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 44c2ce8ca410..4ec25e9b21df 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -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); }