aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorDaniel Lezcano <[email protected]>2024-02-13 22:39:47 +0000
committerRafael J. Wysocki <[email protected]>2024-02-16 19:02:31 +0000
commitb50155cb0d609437236c88201206267835c6f965 (patch)
tree97aa51e0f957069a47aa474f2c30c0816f1e1d89 /drivers/fpga/altera-fpga2sdram.c
parentpowercap: intel_rapl: Add support for Arrow Lake (diff)
downloadkernel-b50155cb0d609437236c88201206267835c6f965.tar.gz
kernel-b50155cb0d609437236c88201206267835c6f965.zip
powercap: dtpm_cpu: Fix error check against freq_qos_add_request()
The caller of the function freq_qos_add_request() checks again a non zero value but freq_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: 0e8f68d7f0485 ("Add CPU energy model based support") Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions