From 200f6d17f904ceb331bf57540511fdea4e1d43c1 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Tue, 6 Apr 2021 21:40:30 -0600 Subject: [PATCH] Exclude CPUFriend from El Capitan-maxed Macs iMac8,1 reported heavily degarded performace, most likely due to the data given to ResourceConverter.sh --- Resources/build.py | 4 ++-- payloads/Kexts/Plists/PlatformPlugin/README.md | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 payloads/Kexts/Plists/PlatformPlugin/README.md diff --git a/Resources/build.py b/Resources/build.py index 04b189ee3..d5d2adcbe 100644 --- a/Resources/build.py +++ b/Resources/build.py @@ -83,7 +83,7 @@ class BuildOpenCore: ("AppleMCEReporterDisabler.kext", self.constants.mce_version, self.constants.mce_path, lambda: self.model in ModelArray.DualSocket), ("AAAMouSSE.kext", self.constants.mousse_version, self.constants.mousse_path, lambda: self.model in ModelArray.SSEEmulator), ("telemetrap.kext", self.constants.telemetrap_version, self.constants.telemetrap_path, lambda: self.model in ModelArray.MissingSSE42), - ("CPUFriend.kext", self.constants.cpufriend_version, self.constants.cpufriend_path, lambda: self.model != "iMac7,1"), + ("CPUFriend.kext", self.constants.cpufriend_version, self.constants.cpufriend_path, lambda: self.model not in ModelArray.NoAPFSsupport), # Ethernet patches ("nForceEthernet.kext", self.constants.nforce_version, self.constants.nforce_path, lambda: self.model in ModelArray.EthernetNvidia), ("MarvelYukonEthernet.kext", self.constants.marvel_version, self.constants.marvel_path, lambda: self.model in ModelArray.EthernetMarvell), @@ -141,7 +141,7 @@ class BuildOpenCore: # CPUFriend pp_map_path = Path(self.constants.current_path) / Path(f"payloads/Kexts/Plists/PlatformPlugin/{self.model}/Info.plist") - if self.model != "iMac7,1": + if self.model not in ModelArray.NoAPFSsupport: Path(self.constants.pp_kext_folder).mkdir() Path(self.constants.pp_contents_folder).mkdir() shutil.copy(pp_map_path, self.constants.pp_contents_folder) diff --git a/payloads/Kexts/Plists/PlatformPlugin/README.md b/payloads/Kexts/Plists/PlatformPlugin/README.md new file mode 100644 index 000000000..0436b562d --- /dev/null +++ b/payloads/Kexts/Plists/PlatformPlugin/README.md @@ -0,0 +1,7 @@ +# Platform Plugin Plists + +This folder contains many profiles for CPU power management. These plist were originally provided by Apple within IOPlatformPluginFamily's `ACPI_SMC_PlatformPlugin` and `X86PlatformPlugin`, then converted into CPUFriend compatible data via [ResourceConverter.sh](https://github.com/acidanthera/CPUFriend/blob/master/Tools/ResourceConverter.sh). + +This allows for all Mac models in this patcher to support the correct power management regardless of the SMBIOS used. + +* Note: iMac7,1 and older did not support ACPI_SMC_PlatformPlugin so no CPUFriend support is required \ No newline at end of file