Home
last modified time | relevance | path

Searched hist:"86 cb1004" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/thermal/intel/
H A Dintel_pch_thermal.c86cb1004 Mon Jan 30 13:02:19 CST 2023 Rafael J. Wysocki <rafael.j.wysocki@intel.com> thermal: intel: intel_pch: Eliminate device operations object

The same device operations object is pointed to by all of the board
configurations in the driver, so effectively the same operations
callbacks are used by all of them which only adds overhead (that can
be significant due to retpolines) for no real purpose.

For this reason, drop the device operations object and replace the
respective callback invocations by direct calls to the specific
functions that were previously pointed to by callback pointers.

No intentional change in behavior.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>