cregit-Linux how code gets into the kernel

Release 4.7 tools/lib/api/cpu.c

Directory: tools/lib/api
#include <stdio.h>

#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); }

Contributors

PersonTokensPropCommitsCommitProp
arnaldo carvalho de meloarnaldo carvalho de melo58100.00%1100.00%
Total58100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
arnaldo carvalho de meloarnaldo carvalho de melo67100.00%1100.00%
Total67100.00%1100.00%
Directory: tools/lib/api
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}