cregit-Linux how code gets into the kernel

Release 4.18 tools/lib/api/cpu.c

Directory: tools/lib/api
// SPDX-License-Identifier: GPL-2.0
#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 Melo58100.00%1100.00%
Total58100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo6798.53%150.00%
Greg Kroah-Hartman11.47%150.00%
Total68100.00%2100.00%
Directory: tools/lib/api
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.