#include #include "cpu.h" #include "fs/fs.h" int cpu__get_max_freq(unsigned long long *freq) { char entry[PATH_MAX]; int cpu; if (sysfs__read_int("devices/system/cpu/online", &cpu) < 0) return -1; snprintf(entry, sizeof(entry), "devices/system/cpu/cpu%d/cpufreq/cpuinfo_max_freq", cpu); return sysfs__read_ull(entry, freq); } cs-git' href='git://git.distanz.ch/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
ass='left'>Lines n' name='id' value='e9b2aefa88c5d9e4ea8fc950da9b105981ad60ec'/>
AgeCommit message (Expand)AuthorFilesLines
2017-02-03net: Introduce ife encapsulation moduleYotam Gigi1-0/+51
context:
space:
mode:
Diffstat (limited to 'include/soc')