power: Prefer min over max for online cpus
Sai Gurrappadi [Mon, 21 Oct 2013 17:44:23 +0000 (10:44 -0700)]
We prefered min_online_cpus over max_online_cpus if min > max.
min_wins is now true for online cpu PmQoS requests.

Bug 1270839

Change-Id: I2888538dd1a4616babb7cd1532264272de5cfe64
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/301871
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

kernel/power/qos.c

index 322f827..5071a11 100644 (file)
@@ -116,7 +116,7 @@ static struct pm_qos_bounded_constraint online_cpus_constraint = {
        .prio_list = PLIST_HEAD_INIT(online_cpus_constraint.prio_list),
        .max_class = PM_QOS_MAX_ONLINE_CPUS,
        .min_class = PM_QOS_MIN_ONLINE_CPUS,
-       .min_wins = false,
+       .min_wins = true,
 };
 static struct pm_qos_bounded_object online_cpus_pm_qos = {
        .bounds = &online_cpus_constraint,