async fn distribute_power(&self, available_power: Watts) -> Result<(), Error> {
        let message = Message::SetMaxPowerConsumption(available_power);
        self.send_message(&self.config.cpu_control_node, &message).await?;
        Ok(())
    }
/// This function is responsible for distributing the available power (as determined by the
/// prior PID calculation) to the various power actors that are included in this closed loop
/// system. Initially, CPU is the only power actor. In later versions of the thermal policy,
/// there may be more power actors with associated "weights" for distributing power amongst
/// them.
This function is responsible for distributing the available power (as determined by the
prior PID calculation) to the various power actors that are included in this closed loop
system. Initially, CPU is the only power actor. In later versions of the thermal policy,
there may be more power actors with associated "weights" for distributing power amongst
them.
This function is responsible for distributing the available power ( as determined by the prior PID calculation ) to the various power actors that are included in this closed loop system . Initially CPU is the only power actor . In later versions of the thermal policy there may be more power actors with associated " weights " for distributing power amongst them .
async fn distribute_power(&self, available_power: Watts) -> Result<(), Error> {
        let message = Message::SetMaxPowerConsumption(available_power);
        self.send_message(&self.config.cpu_control_node, &message).await?;
        Ok(())
    }
async fn distribute_power ( & self , available_power : Watts ) -> Result < ( ) , Error > { let message = Message :: SetMaxPowerConsumption ( available_power ) ; self . send_message ( & self . config . cpu_control_node , & message ) . await ? ; Ok ( ( ) ) }
This function is responsible for distributing the available power (as determined by the
prior PID calculation) to the various power actors that are included in this closed loop
system.
This function is responsible for distributing the available power ( as determined by the prior PID calculation ) to the various power actors that are included in this closed loop system .
&self
available_power
Watts