66#include "modules/cpu/cpu.h"
77#include "util/stringUtils.h"
88
9- #define FF_CPU_NUM_FORMAT_ARGS 10
9+ #define FF_CPU_NUM_FORMAT_ARGS 9
1010
1111static int sortCores (const FFCPUCore * a , const FFCPUCore * b )
1212{
@@ -19,7 +19,6 @@ void ffPrintCPU(FFCPUOptions* options)
1919 .temperature = FF_CPU_TEMP_UNSET ,
2020 .frequencyMax = 0 ,
2121 .frequencyBase = 0 ,
22- .frequencyBiosLimit = 0 ,
2322 .name = ffStrbufCreate (),
2423 .vendor = ffStrbufCreate (),
2524 };
@@ -71,9 +70,7 @@ void ffPrintCPU(FFCPUOptions* options)
7170 else if (cpu .coresOnline > 1 )
7271 ffStrbufAppendF (& str , " (%u)" , cpu .coresOnline );
7372
74- uint32_t freq = cpu .frequencyBiosLimit ;
75- if (freq == 0 )
76- freq = cpu .frequencyMax ;
73+ uint32_t freq = cpu .frequencyMax ;
7774 if (freq == 0 )
7875 freq = cpu .frequencyBase ;
7976 if (freq > 0 )
@@ -96,8 +93,6 @@ void ffPrintCPU(FFCPUOptions* options)
9693 ffParseFrequency (cpu .frequencyBase , & freqBase );
9794 FF_STRBUF_AUTO_DESTROY freqMax = ffStrbufCreate ();
9895 ffParseFrequency (cpu .frequencyMax , & freqMax );
99- FF_STRBUF_AUTO_DESTROY freqBioslimit = ffStrbufCreate ();
100- ffParseFrequency (cpu .frequencyBiosLimit , & freqBioslimit );
10196
10297 FF_STRBUF_AUTO_DESTROY tempStr = ffStrbufCreate ();
10398 ffTempsAppendNum (cpu .temperature , & tempStr , options -> tempConfig , & options -> moduleArgs );
@@ -111,7 +106,6 @@ void ffPrintCPU(FFCPUOptions* options)
111106 FF_FORMAT_ARG (freqMax , "freq-max" ),
112107 FF_FORMAT_ARG (tempStr , "temperature" ),
113108 FF_FORMAT_ARG (coreTypes , "core-types" ),
114- FF_FORMAT_ARG (freqBioslimit , "freq-bios-limit" ),
115109 }));
116110 }
117111 }
@@ -190,7 +184,6 @@ void ffGenerateCPUJsonResult(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_
190184 .temperature = FF_CPU_TEMP_UNSET ,
191185 .frequencyMax = 0 ,
192186 .frequencyBase = 0 ,
193- .frequencyBiosLimit = 0 ,
194187 .name = ffStrbufCreate (),
195188 .vendor = ffStrbufCreate (),
196189 };
@@ -219,7 +212,6 @@ void ffGenerateCPUJsonResult(FFCPUOptions* options, yyjson_mut_doc* doc, yyjson_
219212 yyjson_mut_val * frequency = yyjson_mut_obj_add_obj (doc , obj , "frequency" );
220213 yyjson_mut_obj_add_uint (doc , frequency , "base" , cpu .frequencyBase );
221214 yyjson_mut_obj_add_uint (doc , frequency , "max" , cpu .frequencyMax );
222- yyjson_mut_obj_add_uint (doc , frequency , "biosLimit" , cpu .frequencyBiosLimit );
223215
224216 yyjson_mut_val * coreTypes = yyjson_mut_obj_add_arr (doc , obj , "coreTypes" );
225217 for (uint32_t i = 0 ; i < sizeof (cpu .coreTypes ) / sizeof (cpu .coreTypes [0 ]) && cpu .coreTypes [i ].count > 0 ; i ++ )
@@ -248,7 +240,6 @@ void ffPrintCPUHelpFormat(void)
248240 "Max frequency (formatted) - freq-max" ,
249241 "Temperature (formatted) - temperature" ,
250242 "Logical core count grouped by frequency - core-types" ,
251- "Bios limited frequency (formatted) - freq-bios-limit" ,
252243 }));
253244}
254245
0 commit comments