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 {