Skip to content

Commit

Permalink
Efficency core information blocked before Windows 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
win32ss committed Mar 8, 2024
1 parent 25cef38 commit 2058c67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/system/sys_info_win.cc
Expand Up @@ -153,6 +153,9 @@ int SysInfo::NumberOfProcessors() {

// static
int SysInfo::NumberOfEfficientProcessorsImpl() {
// No efficiency support before Windows 10.
if (win::GetVersion() < win::Version::WIN10)
return 0;
std::vector<BYTE> efficiency_classes = GetCoreEfficiencyClasses();
if (efficiency_classes.empty())
return 0;
Expand Down

0 comments on commit 2058c67

Please sign in to comment.