diff --git a/plugin/thread_pool/threadpool_common.cc b/plugin/thread_pool/threadpool_common.cc index ac00d9d180aa1fec209dd53b43ea1a2155a4ee1d..1e646c7ebe43e581dc0bd3338ab6da45d18345b9 100644 --- a/plugin/thread_pool/threadpool_common.cc +++ b/plugin/thread_pool/threadpool_common.cc @@ -476,10 +476,7 @@ static bool tptarget(void) { unsigned long long cpuId; __asm__ volatile("mrs %0, MIDR_EL1":"=r"(cpuId)); - - unsigned long long vendor = (cpuId >> 0x18) & 0xFF; - unsigned long long partId = (cpuId >> 0x4) & 0xFFF; - return ((vendor == 0x48) && partId == 0xD01); + return (((cpuId >> 0x18) & 0xFF) == 0x48); } thread_pool_rwlock_t gPluginLock;