Skip to contentSkip to conversation

fbcon: queue work on power efficient wq

PATCH New Mark Brown 1 participant 1 message Dec 17, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 5/11 fbcon: queue work on power efficient wq

From: Viresh Kumar <[email protected]>

fbcon uses workqueues and it has no real dependency of scheduling these on the cpu which scheduled them.

On a idle system, it is observed that and idle cpu wakes up many times just to service this work. It would be better if we can schedule it on a cpu which the scheduler believes to be the most appropriate one.

This patch replaces system_wq with system_power_efficient_wq.

Cc Dave Airlie <[email protected]>
(cherry picked from commit a85f1a41f020bc2c97611060bcfae6f48a1db28d)
---
 drivers/video/console/fbcon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/console/fbcon.c +1 -1
index a92783e480e6..0d8f98c79a6c 100644
@@ -404,7 +404,7 @@ static void cursor_timer_handler(unsigned long dev_addr)
 	struct fb_info *info = (struct fb_info *) dev_addr;
 	struct fbcon_ops *ops = info->fbcon_par;
 
-	schedule_work(&info->queue);
+	queue_work(system_power_efficient_wq, &info->queue);
 	mod_timer(&ops->cursor_timer, jiffies + HZ/5);
 }
 
Signature · 1 line
1.8.5.1