Remove CPU/Latency. Warning if CPU/Latency is used.

This commit is contained in:
jief666 2021-09-25 13:57:07 +03:00
parent e6c194d1b9
commit 537884c7bd
5 changed files with 14 additions and 17 deletions

View File

@ -839,6 +839,7 @@
"wcsncmp=wcsncmp_fixed",
"wcsstr=wcsstr_fixed",
NO_DEBUG_TRACE,
OC_TARGET_DEBUG,
);
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
@ -967,6 +968,7 @@
"wcsncmp=wcsncmp_fixed",
"wcsstr=wcsstr_fixed",
NO_DEBUG_TRACE,
OC_TARGET_DEBUG,
);
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;

View File

@ -57,11 +57,7 @@ extern "C" int main(int argc, const char * argv[])
#ifdef JIEF_DEBUG
path = "config-nowarning-noerror.plist";
path = "config-test2.plist";
//path = "/JiefLand/5.Devel/Clover/user config/Matgen84/EFI_github/CLOVER/config.plist";
//path = "/JiefLand/5.Devel/Clover/user config/BS.plist";
//path = "/JiefLand/5.Devel/Clover/user config/maclinuxG4/config.plist";
//path = "/JiefLand/5.Devel/Clover/user config/MICKHAEL/EFI_Github/CLOVER/config.plist";
path = "/JiefLand/5.Devel/Clover/user config/MacKonsti/2021-05-17/config-test.plist";
path = "/Volumes/CL_EFI_VMDK/EFI/CLOVER/config.plist";
#endif
if ( !path ) {

View File

@ -1265,7 +1265,6 @@ public:
undefinable_bool _EnableC6 = undefinable_bool();
undefinable_bool _EnableC4 = undefinable_bool();
undefinable_bool _EnableC2 = undefinable_bool();
undefinable_uint16 _C3Latency = undefinable_uint16();
#if __cplusplus > 201703L
bool operator == (const CPUClass&) const = default;
@ -1287,7 +1286,6 @@ public:
if ( !(_EnableC6 == other._EnableC6) ) return false;
if ( !(_EnableC4 == other._EnableC4) ) return false;
if ( !(_EnableC2 == other._EnableC2) ) return false;
if ( !(_C3Latency == other._C3Latency) ) return false;
return true;
}
void takeValueFrom(const ConfigPlistClass::CPU_Class& configPlist)
@ -1307,7 +1305,6 @@ public:
_EnableC6 = configPlist.dget_EnableC6();
_EnableC4 = configPlist.dget_EnableC4();
_EnableC2 = configPlist.dget_EnableC2();
_C3Latency = configPlist.dget_C3Latency();
}
};
@ -2689,10 +2686,6 @@ printf("%s", "");
if ( CPU._EnableC2.isDefined() ) return CPU._EnableC2.value();
return ACPI.SSDT._EnableC2;
}
bool getC3Latency() const {
// if ( CPU._C3Latency.isDefined() ) return CPU._C3Latency.value();
return ACPI.SSDT._C3Latency;
}
};

View File

@ -26,6 +26,15 @@ protected:
return true;
}
};
class LatencyClass : public XmlUInt16
{
using super = XmlUInt16;
public:
virtual bool validate(XmlLiteParser* xmlLiteParser, const XString8& xmlPath, const XmlParserPosition& keyPos, bool generateErrors) override {
RETURN_IF_FALSE( super::validate(xmlLiteParser, xmlPath, keyPos, generateErrors) );
return xmlLiteParser->addWarning(generateErrors, S8Printf("Latency is replaced by ACPI/SSDT/C3Latency, value ignored. tag '%s:%d'.", xmlPath.c_str(), keyPos.getLine()));
}
};
XmlUInt16 QPI = XmlUInt16();
FrequencyMHzClass FrequencyMHz = FrequencyMHzClass();
@ -36,7 +45,7 @@ protected:
XmlBool C6 = XmlBool();
XmlBool C4 = XmlBool();
XmlBool C2 = XmlBool();
XmlUInt16 Latency = XmlUInt16();
LatencyClass Latency = LatencyClass();
XmlUInt8 SavingMode = XmlUInt8();
XmlBool HWPEnable = XmlBool();
XmlUInt32 HWPValue = XmlUInt32();

View File

@ -2901,7 +2901,6 @@ RefitMain (IN EFI_HANDLE ImageHandle,
DBG("SimpleTextEx Status=%s\n", efiStrError(Status));
gConf.InitialisePlatform();
// DBG("5: GlobalConfig.C3Latency=%x\n", GlobalConfig.C3Latency);
#ifdef JIEF_DEBUG
DumpNvram();
@ -2983,8 +2982,6 @@ RefitMain (IN EFI_HANDLE ImageHandle,
GetListOfThemes();
GetListOfConfigs();
}
// DBG("0: GlobalConfig.C3Latency=%x\n", gSettings.ACPI.SSDT._C3Latency);
// DBG("0: gSettings.CPU.SavingMode=%x\n", gSettings.CPU.SavingMode);
// ThemeX.FillByEmbedded(); //init XTheme before EarlyUserSettings
{
void *Value = NULL;