Merge pull request #136 from zhouzi88/master

report correct fan speed when fan speed changes according to thermal …
This commit is contained in:
Jeffrey Townsend
2016-12-05 18:46:51 -08:00
committed by GitHub
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)
{