[PATCH] pm_qos: Add system bus performance parameter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Saravana Kannan
Date: Thursday, August 26, 2010 - 9:13 pm

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.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Thu Aug 26, 9:13 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Peter Zijlstra, (Fri Aug 27, 3:17 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Bryan Huntsman, (Fri Aug 27, 11:33 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Aug 27, 7:55 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Kevin Hilman, (Mon Aug 30, 11:56 am)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Tue Aug 31, 3:38 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Wed Sep 1, 8:37 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Rafael J. Wysocki, (Thu Sep 2, 1:09 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Sep 3, 7:04 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Rafael J. Wysocki, (Tue Sep 7, 2:43 pm)
Re: [PATCH] pm_qos: Add system bus performance parameter, Saravana Kannan, (Fri Sep 17, 1:32 pm)