mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 17:27:01 +00:00
Merge pull request #136 from zhouzi88/master
report correct fan speed when fan speed changes according to thermal …
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user