From patchwork Wed Apr 24 11:42:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 16377 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2277723918 for ; Wed, 24 Apr 2013 11:48:04 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id 11sf3040919vbf.9 for ; Wed, 24 Apr 2013 04:47:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=ED8YhT/Bk8C4SRsx6B1O5UpXfJb/W2K2J/QS2fCdIXk=; b=A3k6+V5AxtitaFS7o5D10N7x+NbyHWxhazzO+lnKTg3d9DioCrnG6E2MNpe6QNAUdB nEEtCHZAziOYdwE1UwZ7VI2C2O98GmHQQeqwHl4o1UlgWe+oUPtmN5xup0kOqUbWEBS0 Fi2EsggJ7NCR2huT/jLpjVy27r0EY13Hv0qWonC+m3cF1wNpytbIqocOFFBe0M3CmEj6 4SksYZdD/tOX/h5iGitM7Vh0ibClQgFUYgV8Rnsh/uZC1w53gWdfMQDf7kbh9ktDTXgZ 64OFpm5y54gkQ87J4ZSSCa3DN1zKraN6lErEx3I1bYFFwm/b/vYxfrr4/XeY1ZN5eCZT hPvg== X-Received: by 10.236.226.3 with SMTP id a3mr16275237yhq.12.1366804033138; Wed, 24 Apr 2013 04:47:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.44 with SMTP id cz12ls868774qeb.67.gmail; Wed, 24 Apr 2013 04:47:13 -0700 (PDT) X-Received: by 10.52.232.196 with SMTP id tq4mr21022711vdc.15.1366804032954; Wed, 24 Apr 2013 04:47:12 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id ir6si1107903vdb.13.2013.04.24.04.47.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Apr 2013 04:47:12 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22d is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22d; Received: by mail-ve0-f173.google.com with SMTP id ox1so672350veb.18 for ; Wed, 24 Apr 2013 04:47:12 -0700 (PDT) X-Received: by 10.220.189.9 with SMTP id dc9mr11574109vcb.8.1366804032829; Wed, 24 Apr 2013 04:47:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp169564veb; Wed, 24 Apr 2013 04:47:12 -0700 (PDT) X-Received: by 10.66.164.6 with SMTP id ym6mr19057566pab.92.1366804031901; Wed, 24 Apr 2013 04:47:11 -0700 (PDT) Received: from mail-da0-x232.google.com (mail-da0-x232.google.com [2607:f8b0:400e:c00::232]) by mx.google.com with ESMTPS id xw2si2246510pbb.342.2013.04.24.04.47.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Apr 2013 04:47:11 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::232 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=2607:f8b0:400e:c00::232; Received: by mail-da0-f50.google.com with SMTP id a4so851631dad.37 for ; Wed, 24 Apr 2013 04:47:11 -0700 (PDT) X-Received: by 10.68.226.106 with SMTP id rr10mr46520083pbc.127.1366804031520; Wed, 24 Apr 2013 04:47:11 -0700 (PDT) Received: from localhost ([122.172.242.146]) by mx.google.com with ESMTPSA id do4sm2788442pbc.8.2013.04.24.04.47.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 24 Apr 2013 04:47:10 -0700 (PDT) From: Viresh Kumar To: tj@kernel.org Cc: davem@davemloft.net, airlied@redhat.com, axboe@kernel.dk, tglx@linutronix.de, peterz@infradead.org, mingo@redhat.com, rostedt@goodmis.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, linaro-kernel@lists.linaro.org, patches@linaro.org, Viresh Kumar , linux-fbdev@vger.kernel.org Subject: [PATCH V5 5/5] fbcon: queue work on power efficient wq Date: Wed, 24 Apr 2013 17:12:57 +0530 Message-Id: <89924f001e3ddd66ab41a16500569a976ea846fd.1366803121.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: ALoCoQkuFCCYEqZ3vBtOvQ2CaHeVUeZ9VBmRE8YKnEy+xLQ6N29LoThVkb3k2UwnXgzCXTcu6Cjs X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22d is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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..0cae83d 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_power_efficient_wq, &info->queue); mod_timer(&ops->cursor_timer, jiffies + HZ/5); }