Loading...
--- xnu/xnu-517.7.21/iokit/Kernel/IOPMrootDomain.cpp
+++ xnu/xnu-517.9.4/iokit/Kernel/IOPMrootDomain.cpp
@@ -771,6 +771,13 @@
return kIOReturnSuccess;
}
+IOReturn IOPMrootDomain::registerPlatformPowerProfiles
+ (OSArray *system_profiles)
+{
+ if(!system_profiles) return kIOReturnBadArgument;
+ if(getProperty("SystemPowerProfiles")) return kIOReturnExclusiveAccess;
+ setProperty("SystemPowerProfiles", system_profiles);
+}
//*********************************************************************************
// receivePowerNotification