|
5 | 5 | /* */ |
6 | 6 | /* OpenPOWER OnChipController Project */ |
7 | 7 | /* */ |
8 | | -/* Contributors Listed Below - COPYRIGHT 2011,2015 */ |
| 8 | +/* Contributors Listed Below - COPYRIGHT 2011,2016 */ |
9 | 9 | /* [+] International Business Machines Corp. */ |
10 | 10 | /* */ |
11 | 11 | /* */ |
@@ -174,19 +174,6 @@ void amec_update_proc_core_sensors(uint8_t i_core) |
174 | 174 | //------------------------------------------------------- |
175 | 175 | amec_calc_spurr(i_core); |
176 | 176 |
|
177 | | - //------------------------------------------------------- |
178 | | - // Voltage |
179 | | - //------------------------------------------------------- |
180 | | - amec_sensors_core_voltage(i_core); |
181 | | - |
182 | | - //------------------------------------------------------- |
183 | | - // Leakage current (for WOF) |
184 | | - // Note: Run after core temperature and voltage updates |
185 | | - // amec_calc_dts_sensors() |
186 | | - // amec_sensors_core_voltage() |
187 | | - //------------------------------------------------------- |
188 | | - amec_wof_calc_core_leakage(i_core); |
189 | | - |
190 | 177 | // ------------------------------------------------------ |
191 | 178 | // Update PREVIOUS values for next time |
192 | 179 | // ------------------------------------------------------ |
@@ -222,6 +209,24 @@ void amec_update_proc_core_sensors(uint8_t i_core) |
222 | 209 | // hi 3 bits in 0.796 day resolution with 512MHz TOD clock |
223 | 210 | sensor_update( AMECSENSOR_PTR(TODclock2), l_temp16); |
224 | 211 | } |
| 212 | + |
| 213 | + // Always update core voltage and leakage current even when |
| 214 | + // core is turned off. Required for correct WOF operation. |
| 215 | + if(CORE_PRESENT(i_core)) |
| 216 | + { |
| 217 | + //------------------------------------------------------- |
| 218 | + // Voltage |
| 219 | + //------------------------------------------------------- |
| 220 | + amec_sensors_core_voltage(i_core); |
| 221 | + |
| 222 | + //------------------------------------------------------- |
| 223 | + // Leakage current (for WOF) |
| 224 | + // Note: Run after core temperature and voltage updates |
| 225 | + // amec_calc_dts_sensors() |
| 226 | + // amec_sensors_core_voltage() |
| 227 | + //------------------------------------------------------- |
| 228 | + amec_wof_calc_core_leakage(i_core); |
| 229 | + } |
225 | 230 | } |
226 | 231 |
|
227 | 232 |
|
|
0 commit comments