]> Git Repo - linux.git/blobdiff - drivers/base/power/qos.c
kconfig: drop 'boolean' keyword
[linux.git] / drivers / base / power / qos.c
index 277d43a83f53e8dc011184ebaf6c783c02f7395b..3382542b39b77fc0af6676f7be940f4d0a5c331f 100644 (file)
@@ -139,6 +139,9 @@ static int apply_constraint(struct dev_pm_qos_request *req,
 
        switch(req->type) {
        case DEV_PM_QOS_RESUME_LATENCY:
+               if (WARN_ON(action != PM_QOS_REMOVE_REQ && value < 0))
+                       value = 0;
+
                ret = pm_qos_update_target(&qos->resume_latency,
                                           &req->data.pnode, action, value);
                break;
@@ -189,7 +192,7 @@ static int dev_pm_qos_constraints_allocate(struct device *dev)
        plist_head_init(&c->list);
        c->target_value = PM_QOS_RESUME_LATENCY_DEFAULT_VALUE;
        c->default_value = PM_QOS_RESUME_LATENCY_DEFAULT_VALUE;
-       c->no_constraint_value = PM_QOS_RESUME_LATENCY_DEFAULT_VALUE;
+       c->no_constraint_value = PM_QOS_RESUME_LATENCY_NO_CONSTRAINT;
        c->type = PM_QOS_MIN;
        c->notifiers = n;
 
This page took 0.032211 seconds and 4 git commands to generate.