Skip to content

Commit

Permalink
Prevent error when VRM temperature limit is not set
Browse files Browse the repository at this point in the history
Change-Id: Iba0fe0222f26be4e9f09f1deff29dda227fdfe93
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48642
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
  • Loading branch information
cjcain committed Oct 20, 2017
1 parent bacb45a commit 6404302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/occ_405/amec/amec_health.c
Expand Up @@ -1028,7 +1028,7 @@ void amec_health_check_vrm_vdd_temp(const sensor_t *i_sensor)
l_ot_error = g_amec->thermalvdd.ot_error;

// Check to see if we exceeded our error temperature
if (i_sensor->sample > l_ot_error)
if ((l_ot_error != 0) && (i_sensor->sample > l_ot_error))
{
// Increment the error counter for this FRU
L_error_count++;
Expand Down
2 changes: 1 addition & 1 deletion src/occ_405/occbuildname.c
Expand Up @@ -34,6 +34,6 @@ volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) =

#else

volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) = /*<BuildName>*/ "op_occ_171020a\0" /*</BuildName>*/ ;
volatile const char G_occ_buildname[16] __attribute__((section(".buildname"))) = /*<BuildName>*/ "op_occ_171020b\0" /*</BuildName>*/ ;

#endif

0 comments on commit 6404302

Please sign in to comment.