aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-04-09 09:20:13 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2014-04-24 04:20:38 -0400
commitb8629411bf2c0979ae130511f27fd708e2fd102e (patch)
treef6fb2e46bcb5de38695c684310d0ba1b6d69312c
parentdfee4111febf3d9ef3a640b2cd6205c75f4e7e3d (diff)
extcon: max77693: Use power efficient workqueue for delayed cable detection
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>
-rw-r--r--drivers/extcon/extcon-max77693.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c
index 4657a91acf56..39cd095d103c 100644
--- a/drivers/extcon/extcon-max77693.c
+++ b/drivers/extcon/extcon-max77693.c
@@ -1283,7 +1283,8 @@ static int max77693_muic_probe(struct platform_device *pdev)
1283 * driver should notify cable state to upper layer. 1283 * driver should notify cable state to upper layer.
1284 */ 1284 */
1285 INIT_DELAYED_WORK(&info->wq_detcable, max77693_muic_detect_cable_wq); 1285 INIT_DELAYED_WORK(&info->wq_detcable, max77693_muic_detect_cable_wq);
1286 schedule_delayed_work(&info->wq_detcable, delay_jiffies); 1286 queue_delayed_work(system_power_efficient_wq, &info->wq_detcable,
1287 delay_jiffies);
1287 1288
1288 return ret; 1289 return ret;
1289 1290