summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-07-11 10:02:06 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:16 +0900
commitf471a72bd63710b7491a7695fc4913b23b0520b0 (patch)
tree0947ec8e719c8751dd4b6daf8ac1631da07a40c8 /kernel
parent4a68c12a825708ea2f308ec85014da59a0a3e0e0 (diff)
downloadlinux-3.10-f471a72bd63710b7491a7695fc4913b23b0520b0.tar.gz
linux-3.10-f471a72bd63710b7491a7695fc4913b23b0520b0.tar.bz2
linux-3.10-f471a72bd63710b7491a7695fc4913b23b0520b0.zip
pm_qos: Add PM_QOS_BUS_FREQUENCY pm_qos to guarantee required memory bus frequency
This patch add PM_QOS_BUS_FREQUENCY pm_qos to guarantee required memory bus frequency. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/qos.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 25cf89bc659..789e69f0ec9 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -100,12 +100,25 @@ static struct pm_qos_object network_throughput_pm_qos = {
.name = "network_throughput",
};
+static BLOCKING_NOTIFIER_HEAD(bus_frequency_notifier);
+static struct pm_qos_constraints bus_frequency_constraints = {
+ .list = PLIST_HEAD_INIT(bus_frequency_constraints.list),
+ .target_value = PM_QOS_BUS_FREQUENCY_DEFAULT_VALUE,
+ .default_value = PM_QOS_BUS_FREQUENCY_DEFAULT_VALUE,
+ .type = PM_QOS_MAX,
+ .notifiers = &bus_frequency_notifier,
+};
+static struct pm_qos_object bus_frequency_pm_qos = {
+ .constraints = &bus_frequency_constraints,
+ .name = "bus_frequency",
+};
static struct pm_qos_object *pm_qos_array[] = {
&null_pm_qos,
&cpu_dma_pm_qos,
&network_lat_pm_qos,
- &network_throughput_pm_qos
+ &network_throughput_pm_qos,
+ &bus_frequency_pm_qos,
};
static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,