1 // SPDX-License-Identifier: GPL-2.0
7 int cpu__get_max_freq(unsigned long long *freq)
12 if (sysfs__read_int("devices/system/cpu/online", &cpu) < 0)
15 snprintf(entry, sizeof(entry),
16 "devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq", cpu);
18 return sysfs__read_ull(entry, freq);