report correct fan speed when fan speed changes according to thermal plan

This commit is contained in:
Zi Zhou
2016-12-05 17:57:53 -08:00
parent efe66c755b
commit 0a635a9e3e
2 changed files with 11 additions and 6 deletions

View File

@@ -127,12 +127,6 @@ onlp_fani_init(void)
return ONLP_STATUS_E_INTERNAL;
}
/*
* Bring both fans to max.
* These will be reduced after the first platform management sequence.
*/
onlp_fani_percentage_set(ONLP_FAN_ID_CREATE(1), FAN_PERCENTAGE_MAX);
return ONLP_STATUS_OK;
}

View File

@@ -127,6 +127,17 @@ static const temp_sensor_threshold_t temp_sensor_threshold_b2f[NUM_OF_CHASSIS_TH
#include <onlp/platformi/fani.h>
#include <onlp/platformi/thermali.h>
int
onlp_sysi_platform_manage_init(void)
{
/*
* Bring the fan to max.
* These will be reduced after the first platform management sequence.
*/
onlp_fani_percentage_set(ONLP_FAN_ID_CREATE(1), FAN_PERCENTAGE_MAX);
return 0;
}
int
onlp_sysi_platform_manage_fans(void)
{