@@ -4020,7 +4020,6 @@ REASON_CODE SysInfoPwrThermal(Window *win, CUINT width, CELL_FUNC OutFunc)
4020
4020
- RSZ(POWER_THERMAL_MAX), hSpace,
4021
4021
RSC(POWER_LABEL_MAX).CODE(), POWERED(0) );
4022
4022
}
4023
- {
4024
4023
struct {
4025
4024
const ASCII *code;
4026
4025
const int size;
@@ -4113,7 +4112,6 @@ REASON_CODE SysInfoPwrThermal(Window *win, CUINT width, CELL_FUNC OutFunc)
4113
4112
PL2_Update, pw );
4114
4113
}
4115
4114
}
4116
- }
4117
4115
if((Shm->Proc.Features.Info.Vendor.CRC == CRC_AMD)
4118
4116
|| (Shm->Proc.Features.Info.Vendor.CRC == CRC_HYGON))
4119
4117
{
@@ -4158,6 +4156,60 @@ REASON_CODE SysInfoPwrThermal(Window *win, CUINT width, CELL_FUNC OutFunc)
4158
4156
width - 18 - RSZ(POWER_THERMAL_TDC), hSpace,
4159
4157
RSC(POWER_LABEL_TDC).CODE(), POWERED(0) );
4160
4158
}
4159
+
4160
+ PUT( SCANKEY_NULL, attrib[0], width, 2, "%s %s",
4161
+ RSC(POWER_LABEL_CORE).CODE(), RSC(POWER_THERMAL_POINT).CODE() );
4162
+
4163
+ enum THM_POINTS tp;
4164
+ for (tp = THM_THRESHOLD_1; tp < THM_POINTS_DIM; tp++)
4165
+ {
4166
+ if (BITVAL(Shm->Cpu[Shm->Proc.Service.Core].ThermalPoint.Mask, tp)
4167
+ & BITVAL(Shm->Cpu[Shm->Proc.Service.Core].ThermalPoint.State, tp))
4168
+ {
4169
+ ASCII *code;
4170
+ int size;
4171
+ if (BITVAL(Shm->Cpu[Shm->Proc.Service.Core].ThermalPoint.Kind, tp)) {
4172
+ code = RSC(THERMAL_POINT_LIMIT).CODE();
4173
+ size = RSZ(THERMAL_POINT_LIMIT);
4174
+ } else {
4175
+ code = RSC(THERMAL_POINT_THRESHOLD).CODE();
4176
+ size = RSZ(THERMAL_POINT_THRESHOLD);
4177
+ }
4178
+ PUT( SCANKEY_NULL, attrib[5], width, 3,
4179
+ "%s%.*s%s [%5u %c]",
4180
+ RSC(POWER_THERMAL_POINT).CODE(),
4181
+ width - (OutFunc == NULL ? 18 : 16)
4182
+ - RSZ(POWER_THERMAL_POINT) - size, hSpace, code,
4183
+ Shm->Cpu[Shm->Proc.Service.Core].ThermalPoint.Value[tp], 'C');
4184
+ }
4185
+ }
4186
+
4187
+ PUT( SCANKEY_NULL, attrib[0], width, 2, "%s %s",
4188
+ RSC(POWER_LABEL_PKG).CODE(), RSC(POWER_THERMAL_POINT).CODE() );
4189
+
4190
+ for (tp = THM_THRESHOLD_1; tp < THM_POINTS_DIM; tp++)
4191
+ {
4192
+ if (BITVAL(Shm->Proc.ThermalPoint.Mask, tp)
4193
+ & BITVAL(Shm->Proc.ThermalPoint.State, tp))
4194
+ {
4195
+ ASCII *code;
4196
+ int size;
4197
+ if (BITVAL(Shm->Proc.ThermalPoint.Kind, tp)) {
4198
+ code = RSC(THERMAL_POINT_LIMIT).CODE();
4199
+ size = RSZ(THERMAL_POINT_LIMIT);
4200
+ } else {
4201
+ code = RSC(THERMAL_POINT_THRESHOLD).CODE();
4202
+ size = RSZ(THERMAL_POINT_THRESHOLD);
4203
+ }
4204
+ PUT( SCANKEY_NULL, attrib[5], width, 3,
4205
+ "%s%.*s%s [%5u %c]",
4206
+ RSC(POWER_THERMAL_POINT).CODE(),
4207
+ width - (OutFunc == NULL ? 18 : 16)
4208
+ - RSZ(POWER_THERMAL_POINT) - size, hSpace, code,
4209
+ Shm->Proc.ThermalPoint.Value[tp], 'C');
4210
+ }
4211
+ }
4212
+
4161
4213
PUT( SCANKEY_NULL, attrib[0], width, 2,
4162
4214
(char*) RSC(POWER_THERMAL_UNITS).CODE(), NULL );
4163
4215
0 commit comments