SWDEV-280773 - Log affinity reset

Change-Id: I101c14174097d262d5d5b924cb31a69483a49c04
This commit is contained in:
Saleel Kudchadker
2021-05-11 15:28:11 -07:00
parent 1398719b0d
commit df5b6cf202
+1
View File
@@ -370,6 +370,7 @@ const void* Os::createOsThread(amd::Thread* thread) {
// We never plan the use join, so free the resources now.
::pthread_attr_setdetachstate(&threadAttr, PTHREAD_CREATE_DETACHED);
if (!AMD_CPU_AFFINITY) {
ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Reseting CPU core affinities");
cpu_set_t cpuset;
if (processorCount_ > 0) {
CPU_ZERO(&cpuset);