diff options
author | Ilpo Järvinen <[email protected]> | 2024-10-18 17:47:54 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-11-16 10:09:30 -0600 |
commit | d278b098282d1327f6e1be82aacb18457a4d244d (patch) | |
tree | f5330d8dcda06a3b51b8479954bf890bb4bea1f0 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | de9a6c8d5dbfedb5eb3722c822da0490f6a59a45 (diff) |
thermal: Add PCIe cooling driver
Add a thermal cooling driver to provide path to access PCIe bandwidth
controller using the usual thermal interfaces.
A cooling device is instantiated for controllable PCIe Ports from the
bwctrl service driver.
If registering the cooling device fails, allow bwctrl's probe to succeed
regardless. As cdev in that case contains IS_ERR() pseudo "pointer", clean
that up inside the probe function so the remove side doesn't need to
suddenly make an odd looking IS_ERR() check.
The thermal side state 0 means no throttling, i.e., maximum supported PCIe
Link Speed.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
[bhelgaas: dropped data->cdev test per
https://lore.kernel.org/r/[email protected]]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]> # From the cooling device interface perspective
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions