linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Saravana Kannan <skannan@codeaurora.org>
To: linux-kernel@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
	James Bottomley <James.Bottomley@suse.de>,
	mark gross <markgross@thegnar.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH] pm_qos: Add system bus performance parameter
Date: Thu, 26 Aug 2010 21:13:23 -0700	[thread overview]
Message-ID: <1282882403-29824-2-git-send-email-skannan@codeaurora.org> (raw)
In-Reply-To: <1282882403-29824-1-git-send-email-skannan@codeaurora.org>

Some drivers/devices might need some minimum system bus performance to
provide acceptable service. Provide a PM QoS parameter to send these requests
to.

The new parameter is named "system bus performance" since it is generic enough
for the unit of the request to be frequency, bandwidth or something else that
might be appropriate. It's up to each implementation of the QoS provider to
define what the unit of the request would be.

Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
---
 kernel/pm_qos_params.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c
index 996a4de..1a44a67 100644
--- a/kernel/pm_qos_params.c
+++ b/kernel/pm_qos_params.c
@@ -93,12 +93,21 @@ static struct pm_qos_object network_throughput_pm_qos = {
 	.type = PM_QOS_MAX,
 };
 
+static BLOCKING_NOTIFIER_HEAD(system_bus_performance_notifier);
+static struct pm_qos_object system_bus_performance_pm_qos = {
+	.requests = PLIST_HEAD_INIT(system_bus_performance_pm_qos.requests, pm_qos_lock),
+	.notifiers = &system_bus_performance_notifier,
+	.name = "system_bus_performance",
+	.default_value = 0,
+	.type = PM_QOS_MAX,
+};
 
 static struct pm_qos_object *pm_qos_array[] = {
 	&null_pm_qos,
 	&cpu_dma_pm_qos,
 	&network_lat_pm_qos,
 	&network_throughput_pm_qos
+	&system_bus_performance_pm_qos
 };
 
 static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
-- 
1.7.1.1
---
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

  reply	other threads:[~2010-08-27  4:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27  4:13 Add system bus performance parameter Saravana Kannan
2010-08-27  4:13 ` Saravana Kannan [this message]
2010-08-27  6:41   ` [PATCH] pm_qos: " mark gross
2010-08-27  8:10     ` skannan
2010-08-27 10:17       ` Peter Zijlstra
2010-08-28  2:05       ` mark gross
2010-08-28  2:55         ` Saravana Kannan
2010-08-28 22:52           ` mark gross
2010-08-30 18:56             ` Kevin Hilman
2010-08-31 18:40               ` mark gross
2010-08-31 22:38                 ` Saravana Kannan
2010-09-01 14:28                   ` mark gross
2010-09-02  3:37                     ` Saravana Kannan
2010-09-02 14:09                       ` mark gross
2010-09-04  2:04                         ` Saravana Kannan
2010-09-17 20:32                         ` Saravana Kannan
2010-08-27 14:31   ` Kevin Hilman
2010-08-27 18:33     ` Bryan Huntsman
2010-08-28  1:55       ` mark gross
2010-08-28  2:09     ` mark gross
2010-08-28 23:05     ` mark gross
2010-09-02 14:05     ` mark gross
2010-09-02 20:09       ` Rafael J. Wysocki
2010-09-07  5:42         ` mark gross
2010-09-07 21:43           ` Rafael J. Wysocki
2010-08-27  4:19 ` Saravana Kannan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1282882403-29824-2-git-send-email-skannan@codeaurora.org \
    --to=skannan@codeaurora.org \
    --cc=James.Bottomley@suse.de \
    --cc=corbet@lwn.net \
    --cc=fweisbec@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markgross@thegnar.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).