From patchwork Sun Mar 31 14:27:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 15782 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 823BA23E33 for ; Sun, 31 Mar 2013 14:27:50 +0000 (UTC) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by fiordland.canonical.com (Postfix) with ESMTP id 42A25A18D2C for ; Sun, 31 Mar 2013 14:27:50 +0000 (UTC) Received: by mail-ve0-f175.google.com with SMTP id pb11so1818745veb.34 for ; Sun, 31 Mar 2013 07:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state; bh=tbArIdST0tEnhUK4AcKAPS+PQMcrq5DZl1x6J28siHM=; b=HgNmTYQHrPN3m/p98dDPjLdCU8Zt2xM0q+vSxG6g2bzqoW7QodmnGaRI98E3fGIoMG j+lhrwbYG6gnnlE5I+3G6V9ynvCYRiI3Q4FZ48EX67Rry0PumOF8vxKVI1ikWSMmptPH evd9U5Yw9KlbOh8FxiyiEONZp9DbglVt1GJkFKwEhgQ3D7cFtSZz+fzOT/9Eya0S4VeS qrAajaJ0hqHM87pw6tF4FWAF9P2U+VVHbrS20+g5wOFKrhgZ6YgdGEsdwvm6Gw+ZJKRp ziN6RucQOlgo41ybWy+DKojkTdPl3DN0bgFL63jEo06QjlMIckctqnMwBF0q25wa1mIx MdNg== X-Received: by 10.220.150.74 with SMTP id x10mr6782216vcv.68.1364740069777; Sun, 31 Mar 2013 07:27:49 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp51749ved; Sun, 31 Mar 2013 07:27:49 -0700 (PDT) X-Received: by 10.66.250.135 with SMTP id zc7mr14126948pac.162.1364740068877; Sun, 31 Mar 2013 07:27:48 -0700 (PDT) Received: from mail-da0-x22d.google.com (mail-da0-x22d.google.com [2607:f8b0:400e:c00::22d]) by mx.google.com with ESMTPS id qx5si10089890pbc.234.2013.03.31.07.27.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 Mar 2013 07:27:48 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::22d is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=2607:f8b0:400e:c00::22d; Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400e:c00::22d is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) smtp.mail=viresh.kumar@linaro.org Received: by mail-da0-f45.google.com with SMTP id v40so758260dad.4 for ; Sun, 31 Mar 2013 07:27:48 -0700 (PDT) X-Received: by 10.66.82.132 with SMTP id i4mr14292293pay.172.1364740068490; Sun, 31 Mar 2013 07:27:48 -0700 (PDT) Received: from localhost ([122.167.73.68]) by mx.google.com with ESMTPS id 1sm10167143pba.32.2013.03.31.07.27.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 31 Mar 2013 07:27:47 -0700 (PDT) From: Viresh Kumar To: tj@kernel.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, davem@davemloft.net, airlied@redhat.com, axboe@kernel.dk, Viresh Kumar , linux-fbdev@vger.kernel.org Subject: [PATCH V4 4/4] fbcon: queue work on unbound wq Date: Sun, 31 Mar 2013 19:57:05 +0530 Message-Id: <2a30b6c081a7899fbce88bddf20b94c348eb4654.1364739015.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmtRnJYcOb6xBPTO+5Kx18jaBLhEPFwQymhygdc345uGdjB/rnmwxXRXEaJKAqoyIDGLwUm 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_unbound_wq. Cc: Dave Airlie Cc: linux-fbdev@vger.kernel.org Signed-off-by: Viresh Kumar --- drivers/video/console/fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index 3cd6759..6c1f7c3 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -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_unbound_wq, &info->queue); mod_timer(&ops->cursor_timer, jiffies + HZ/5); }