linux/drivers/powercap
Yuan Can 5209d1b654 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: e446556173 ("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>
2024-10-21 13:23:06 +02:00
..
arm_scmi_powercap.c powercap: arm_scmi: Remove recursion while parsing zones 2023-07-20 20:27:10 +02:00
dtpm_cpu.c powercap: DTPM: Avoid explicit cpumask allocation on stack 2024-04-16 13:33:03 +02:00
dtpm_devfreq.c powercap: dtpm_devfreq: Fix error check against dev_pm_qos_add_request() 2024-10-21 13:23:06 +02:00
dtpm_subsys.h
dtpm.c powercap: dtpm: Fix kernel-doc for dtpm_create_hierarchy() function 2024-03-01 21:39:10 +01:00
idle_inject.c powercap: idle_inject: Simplify if condition 2024-06-07 20:57:20 +02:00
intel_rapl_common.c powercap: intel_rapl: Change an error pointer to NULL 2024-08-23 15:45:17 +02:00
intel_rapl_msr.c powercap: intel_rapl_msr: Add PL4 support for ArrowLake-H 2024-10-16 22:34:03 +02:00
intel_rapl_tpmi.c powercap: intel_rapl_tpmi: Ignore minor version change 2024-10-08 21:38:49 +02:00
Kconfig
Makefile
powercap_sys.c