Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf9509e0 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Chanwoo Choi
Browse files

extcon: max8997: 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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent b8629411
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;