From bfc34611813e26b3e67335c9572dff32888975ad Mon Sep 17 00:00:00 2001 From: Aluveitie Date: Fri, 3 Mar 2023 10:42:08 +0100 Subject: [PATCH] Revert "Adds TGDD for the first GPU to improve iStats compatibility" This reverts commit b565b47c79f41f50d870857561f31935868d5b80. --- SMCRadeonGPU/SMCRadeonGPU.cpp | 5 ----- SMCRadeonGPU/SMCRadeonGPU.hpp | 1 - 2 files changed, 6 deletions(-) diff --git a/SMCRadeonGPU/SMCRadeonGPU.cpp b/SMCRadeonGPU/SMCRadeonGPU.cpp index 49a42f0..1ade086 100644 --- a/SMCRadeonGPU/SMCRadeonGPU.cpp +++ b/SMCRadeonGPU/SMCRadeonGPU.cpp @@ -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(vsmcPlugin.data.data()), vsmcPlugin.data.size(), sizeof(VirtualSMCKeyValue), VirtualSMCKeyValue::compare); if (!suc) { os_log(OS_LOG_DEFAULT, "SMCRadeonGPU setting up SMC keys failed"); diff --git a/SMCRadeonGPU/SMCRadeonGPU.hpp b/SMCRadeonGPU/SMCRadeonGPU.hpp index e7e366f..efc760a 100644 --- a/SMCRadeonGPU/SMCRadeonGPU.hpp +++ b/SMCRadeonGPU/SMCRadeonGPU.hpp @@ -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 {