Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
Revert "Adds TGDD for the first GPU to improve iStats compatibility"
Browse files Browse the repository at this point in the history
This reverts commit b565b47.
  • Loading branch information
aluveitie committed Mar 3, 2023
1 parent c45fe22 commit bfc3461
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions SMCRadeonGPU/SMCRadeonGPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ IOService *SMCRadeonGPU::probe(IOService *provider, SInt32 *score) {
suc &= VirtualSMCAPI::addKey(KeyTGxP(i), vsmcPlugin.data, VirtualSMCAPI::valueWithSp(0, SmcKeyTypeSp78, new GPUTempProvider(fProvider, i)));
suc &= VirtualSMCAPI::addKey(KeyTGxd(i), vsmcPlugin.data, VirtualSMCAPI::valueWithSp(0, SmcKeyTypeSp78, new GPUTempProvider(fProvider, i)));
suc &= VirtualSMCAPI::addKey(KeyTGxp(i), vsmcPlugin.data, VirtualSMCAPI::valueWithSp(0, SmcKeyTypeSp78, new GPUTempProvider(fProvider, i)));
if (i == 0) {
suc &= VirtualSMCAPI::addKey(KeyTGDD, vsmcPlugin.data, VirtualSMCAPI::valueWithSp(0, SmcKeyTypeSp78, new GPUTempProvider(fProvider, i)));
}
}

qsort(const_cast<VirtualSMCKeyValue *>(vsmcPlugin.data.data()), vsmcPlugin.data.size(), sizeof(VirtualSMCKeyValue), VirtualSMCKeyValue::compare);

if (!suc) {
os_log(OS_LOG_DEFAULT, "SMCRadeonGPU setting up SMC keys failed");
Expand Down
1 change: 0 additions & 1 deletion SMCRadeonGPU/SMCRadeonGPU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class EXPORT SMCRadeonGPU : public IOService {
static constexpr SMC_KEY KeyTGxD(size_t i) { return SMC_MAKE_IDENTIFIER('T','G',KeyIndexes[i],'D'); }
static constexpr SMC_KEY KeyTGxp(size_t i) { return SMC_MAKE_IDENTIFIER('T','G',KeyIndexes[i],'p'); }
static constexpr SMC_KEY KeyTGxd(size_t i) { return SMC_MAKE_IDENTIFIER('T','G',KeyIndexes[i],'d'); }
static constexpr SMC_KEY KeyTGDD = SMC_MAKE_IDENTIFIER('T','G','D','D');


VirtualSMCAPI::Plugin vsmcPlugin {
Expand Down

0 comments on commit bfc3461

Please sign in to comment.