Skip to content

Commit d668c24

Browse files
author
Dmitry Razdoburdin
committed
linting
1 parent 8773b05 commit d668c24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/cache_manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ bool DetectDataCaches(int64_t* cache_sizes) {
7878
GetCacheInfo(cache_num++, &type, &level, &sets, &line_size, &partitions, &ways);
7979
if (!trust_cpuid) return trust_cpuid;
8080

81-
if (type == kCpuidTypeNull) return true; // no more caches to read.
81+
if (type == kCpuidTypeNull) return true; // no more caches to read.
8282
if (type == kCpuidTypeInst) continue;
8383

8484
size = ways * partitions * line_size * sets;

src/common/cache_manager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class CacheManager {
1919
std::array<int64_t, kMaxCacheSize> cache_size_ = {kUninitCache, kUninitCache,
2020
kUninitCache, kUninitCache};
2121

22-
constexpr static int64_t kDefaultL1Size = 32 * 1024; // 32KB
23-
constexpr static int64_t kDefaultL2Size = 1024 * 1024; // 1MB
22+
constexpr static int64_t kDefaultL1Size = 32 * 1024; // 32KB
23+
constexpr static int64_t kDefaultL2Size = 1024 * 1024; // 1MB
2424

2525
// If CPUID cannot be used, fall back to default L1/L2 cache sizes.
2626
void SetDefaultCaches() {

0 commit comments

Comments
 (0)