]> Git Repo - linux.git/blobdiff - drivers/base/power/qos.c
kconfig: drop 'boolean' keyword
[linux.git] / drivers / base / power / qos.c
index 7d29286d9313ba5ee219d552f7cbe18eb124468a..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;
This page took 0.031091 seconds and 4 git commands to generate.