]> Git Repo - linux.git/commitdiff
thermal: core: using power_efficient_wq for thermal worker
authorJeson Gao <[email protected]>
Tue, 4 Sep 2018 07:14:08 +0000 (15:14 +0800)
committerZhang Rui <[email protected]>
Wed, 10 Oct 2018 13:48:50 +0000 (21:48 +0800)
For SMP systems, thermal worker should use power_efficient_wq in power
saving mode, that will make scheduler more flexible on selecting an active
core for running work handler to avoid keeping work handler always
running on a single core, that will save some power.

Even if 'power_efficient_wq' relevant configs are disabled
'system_freezable_power_efficient_wq' is identical to system_freezable_wq,
behavior is unchanged.

Signed-off-by: Jeson Gao <[email protected]>
Signed-off-by: Chunyan Zhang <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
drivers/thermal/thermal_core.c

index 4417781008878eb616d194f89fd176c92acfc502..d6ebc1cf6aa9b197089a07ed074610e0124869e5 100644 (file)
@@ -290,10 +290,12 @@ static void thermal_zone_device_set_polling(struct thermal_zone_device *tz,
                                            int delay)
 {
        if (delay > 1000)
-               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
+               mod_delayed_work(system_freezable_power_efficient_wq,
+                                &tz->poll_queue,
                                 round_jiffies(msecs_to_jiffies(delay)));
        else if (delay)
-               mod_delayed_work(system_freezable_wq, &tz->poll_queue,
+               mod_delayed_work(system_freezable_power_efficient_wq,
+                                &tz->poll_queue,
                                 msecs_to_jiffies(delay));
        else
                cancel_delayed_work(&tz->poll_queue);
This page took 0.056866 seconds and 4 git commands to generate.