Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Nov 16, 2024
1 parent 14c0793 commit 445fe91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CpuInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,13 @@ void CpuInfo::init()
std::vector<size_t> cpuIds;
cpuIds.reserve(3);

// Based on my tests, for hybrid CPUs the Linux kernel always lists
// all performance CPU cores first and all efficiency CPU cores
// last, regardless of the actual physical CPU core layout on the
// die. I tested this using an Intel Arrow Lake 245K CPU where the
// physical CPU core layout (2 P-cores, 8 E-cores, 4 P-cores) on the
// die is different from what the Linux kernel reports.

// Check 1st, last & middle CPU core
cpuIds.push_back(0);
if (logicalCpuCores_ >= 2)
Expand Down

0 comments on commit 445fe91

Please sign in to comment.