[libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party

This commit is contained in:
Siva Chandra Reddy
2021-11-16 22:23:33 +00:00
parent 25bcd94234
commit 39e9f5d368

View File

@@ -15,7 +15,7 @@ namespace libc_benchmarks {
void checkRequirements() {
const auto &CpuInfo = benchmark::CPUInfo::Get();
if (CpuInfo.scaling_enabled)
if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
report_fatal_error(
"CPU scaling is enabled, the benchmark real time measurements may be "
"noisy and will incur extra overhead.");