thermal: intel: hfi: Refactor enabling code into helper functions
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Wed, 3 Jan 2024 04:14:56 +0000 (20:14 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jan 2024 13:06:40 +0000 (14:06 +0100)
commit8a8b6bb93c704776c4b05cb517c3fa8baffb72f5
tree454c4f824d4bc1b6027cb35c0f2a0ef19470a285
parentd654362d53a83ef3b921f3d06812e12290646a90
thermal: intel: hfi: Refactor enabling code into helper functions

In preparation for the addition of a suspend notifier, wrap the logic to
enable HFI and program its memory buffer into helper functions. Both the
CPU hotplug callback and the suspend notifier will use them.

This refactoring does not introduce functional changes.

Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/intel_hfi.c