[libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 16 Nov 2021 22:23:33 +0000 (22:23 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 16 Nov 2021 22:24:49 +0000 (22:24 +0000)
libc/benchmarks/LibcBenchmark.cpp

index cef595d..621e046 100644 (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.");