summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2024-10-18 05:12:05 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-10-21 14:23:06 +0300
commit5209d1b654f1db80509040cc694c7814a1b547e3 (patch)
tree15b526f02570292de2716f6200669a8e851f9c20 /tools/perf/scripts/python/export-to-postgresql.py
parent42f7652d3eb527d03665b09edac47f85fb600924 (diff)
downloadlinux-5209d1b654f1db80509040cc694c7814a1b547e3.tar.xz
powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request()
The caller of the function dev_pm_qos_add_request() checks again a non zero value but dev_pm_qos_add_request() can return '1' if the request already exists. Therefore, the setup function fails while the QoS request actually did not failed. Fix that by changing the check against a negative value like all the other callers of the function. Fixes: e44655617317 ("powercap/drivers/dtpm: Add dtpm devfreq with energy model support") Signed-off-by: Yuan Can <yuancan@huawei.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/20241018021205.46460-1-yuancan@huawei.com [ rjw: Subject edit ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions