Skip to content

Commit

Permalink
Some forgotten renamings
Browse files Browse the repository at this point in the history
Oops...
  • Loading branch information
PMheart committed Aug 6, 2017
1 parent bc12584 commit 508c0aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CPUFriend/kern_cpuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ IOService *CPUFriendPlatform::probe(IOService *provider, SInt32 *score) {
auto name = provider->getName();
if (!name)
name = "(null)";
DBGLOG("proc @ looking for cf-frequency-data in %s", name);
DBGLOG("cpuf @ looking for cf-frequency-data in %s", name);

auto data = OSDynamicCast(OSData, provider->getProperty("cf-frequency-data"));
if (!data) {
auto cpu = provider->getParentEntry(gIOServicePlane);
if (cpu) {
name = cpu->getName();
if (!name) name = "(null)";
DBGLOG("proc @ looking for cf-frequency-data in %s", name);
DBGLOG("cpuf @ looking for cf-frequency-data in %s", name);

data = OSDynamicCast(OSData, cpu->getProperty("cf-frequency-data"));
} else {
SYSLOG("proc @ unable to access cpu parent");
SYSLOG("cpuf @ unable to access cpu parent");
}
}

if (data) {
callbackCpuf->frequencyDataSize = data->getLength();
callbackCpuf->frequencyData = data->getBytesNoCopy();
} else {
SYSLOG("proc @ failed to obtain cf-frequency-data");
SYSLOG("cpuf @ failed to obtain cf-frequency-data");
}
}
} else {
SYSLOG("proc @ missing storage instance");
SYSLOG("cpuf @ missing storage instance");
}
}

Expand Down

0 comments on commit 508c0aa

Please sign in to comment.