control: Set fans to `poweron_target` at poweron
Utilize the PowerState object to subscribe to power state changes so
fans can be set to their configured `poweron_target` values when the
system is powered on. When a system is powered off, by design, nothing
is done to the fan speeds, that is left up to the configuration of
events to change the fans when a system is powered off, if desired.
Also, for any reason that fan control is restarted when the system is
already powered on, it will not change the fan targets to the
`poweron_target` value. Fan control will pick up on controlling the
configured fans from their current target.
Change-Id: I4e4e619b91e5d64b9b06378a37d9a062f10ace6b
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
3 files changed