extcon: max8997: Use power efficient workqueue for delayed cable detection
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 9 Apr 2014 13:20:15 +0000 (15:20 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 24 Apr 2014 08:20:39 +0000 (17:20 +0900)
Schedule delayed cable detection work on power efficient workqueue
so the scheduler won't wake up idle core for that work.
This extends the idle time for CPU cores and conserves power.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max8997.c

index 5e1b88cecb76a5eb036e8407f02c2b71a388d7c9..223e6b068c9831c0556a5e21bf90a469a3588a4b 100644 (file)
@@ -770,7 +770,8 @@ static int max8997_muic_probe(struct platform_device *pdev)
         * driver should notify cable state to upper layer.
         */
        INIT_DELAYED_WORK(&info->wq_detcable, max8997_muic_detect_cable_wq);
-       schedule_delayed_work(&info->wq_detcable, delay_jiffies);
+       queue_delayed_work(system_power_efficient_wq, &info->wq_detcable,
+                       delay_jiffies);
 
        return 0;