From 566594ce3b1dbfc8397a62826992a0794612f51a Mon Sep 17 00:00:00 2001 From: Gaurav Sarode Date: Fri, 17 Feb 2012 15:25:43 +0530 Subject: PM Qos: Add min online cpus as PM QoS parameter Bug 940061 Change-Id: Ibae842fdc3af3c92ec7e6125c602417110d8b55e Signed-off-by: Gaurav Sarode Reviewed-on: http://git-master/r/84521 Reviewed-by: Sachin Nikam Tested-by: Aleksandr Frid Reviewed-by: Diwakar Tundlam --- kernel/pm_qos_params.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kernel') diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c index 324f3422b5da..82da7ac3b1f3 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c @@ -103,6 +103,18 @@ static struct pm_qos_object network_throughput_pm_qos = { .type = PM_QOS_MAX, }; + +static BLOCKING_NOTIFIER_HEAD(min_online_cpus_notifier); +static struct pm_qos_object min_online_cpus_pm_qos = { + .requests = PLIST_HEAD_INIT(min_online_cpus_pm_qos.requests), + .notifiers = &min_online_cpus_notifier, + .name = "min_online_cpus", + .target_value = PM_QOS_MIN_ONLINE_CPUS_DEFAULT_VALUE, + .default_value = PM_QOS_MIN_ONLINE_CPUS_DEFAULT_VALUE, + .type = PM_QOS_MAX, +}; + + static BLOCKING_NOTIFIER_HEAD(max_online_cpus_notifier); static struct pm_qos_object max_online_cpus_pm_qos = { .requests = PLIST_HEAD_INIT(max_online_cpus_pm_qos.requests), @@ -141,6 +153,7 @@ static struct pm_qos_object *pm_qos_array[] = { &cpu_dma_pm_qos, &network_lat_pm_qos, &network_throughput_pm_qos, + &min_online_cpus_pm_qos, &max_online_cpus_pm_qos, &cpu_freq_min_pm_qos, &cpu_freq_max_pm_qos -- cgit v1.2.3