Skip to content

Commit 39e9f5d

Browse files
author
Siva Chandra Reddy
committed
[libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party
1 parent 25bcd94 commit 39e9f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/benchmarks/LibcBenchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace libc_benchmarks {
1515

1616
void checkRequirements() {
1717
const auto &CpuInfo = benchmark::CPUInfo::Get();
18-
if (CpuInfo.scaling_enabled)
18+
if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
1919
report_fatal_error(
2020
"CPU scaling is enabled, the benchmark real time measurements may be "
2121
"noisy and will incur extra overhead.");

0 commit comments

Comments
 (0)