aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-11-22 09:18:16 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-11-22 09:18:16 -0800
commita6b0373ffcd8950b9121195e09c5d7c73e6e9f5d (patch)
tree6dd3b7ad8df312f9ce204247ad1906b964f187b1 /kernel
parentMerge tag 'drm-fixes-2019-11-22' of git://anongit.freedesktop.org/drm/drm (diff)
parentPM: QoS: Invalidate frequency QoS requests after removal (diff)
downloadlinux-dev-a6b0373ffcd8950b9121195e09c5d7c73e6e9f5d.tar.xz
linux-dev-a6b0373ffcd8950b9121195e09c5d7c73e6e9f5d.zip
Merge tag 'pm-5.4-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management regression fix from Rafael Wysocki: "Fix problems with switching cpufreq drivers on some x86 systems with ACPI (and with changing the operation modes of the intel_pstate driver on those systems) introduced by recent changes related to the management of frequency limits in cpufreq" * tag 'pm-5.4-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: PM: QoS: Invalidate frequency QoS requests after removal
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/qos.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 04e83fdfbe80..a45cba7df0ae 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -814,6 +814,8 @@ EXPORT_SYMBOL_GPL(freq_qos_update_request);
*/
int freq_qos_remove_request(struct freq_qos_request *req)
{
+ int ret;
+
if (!req)
return -EINVAL;
@@ -821,7 +823,11 @@ int freq_qos_remove_request(struct freq_qos_request *req)
"%s() called for unknown object\n", __func__))
return -EINVAL;
- return freq_qos_apply(req, PM_QOS_REMOVE_REQ, PM_QOS_DEFAULT_VALUE);
+ ret = freq_qos_apply(req, PM_QOS_REMOVE_REQ, PM_QOS_DEFAULT_VALUE);
+ req->qos = NULL;
+ req->type = 0;
+
+ return ret;
}
EXPORT_SYMBOL_GPL(freq_qos_remove_request);