Home
last modified time | relevance | path

Searched refs:read_msr (Results 1 – 8 of 8) sorted by relevance

/tools/power/cpupower/utils/helpers/
Dmsr.c27 int read_msr(int cpu, unsigned int idx, unsigned long long *val) in read_msr() function
84 ret = read_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &val); in msr_intel_get_perf_bias()
111 ret = read_msr(cpu, MSR_NEHALEM_TURBO_RATIO_LIMIT, &val); in msr_intel_get_turbo_ratio()
Damd.c102 if (read_msr(cpu, MSR_AMD_PSTATE_LIMIT, &val)) in decode_pstates()
107 if (read_msr(cpu, MSR_AMD_PSTATE_STATUS, &val)) in decode_pstates()
120 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val)) in decode_pstates()
Dhelpers.h105 extern int read_msr(int cpu, unsigned int idx, unsigned long long *val);
149 static inline int read_msr(int cpu, unsigned int idx, unsigned long long *val) in read_msr() function
Dmisc.c30 if (!read_msr(cpu, MSR_AMD_HWCR, &val)) { in cpufreq_has_boost_support()
/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c84 ret = read_msr(base_cpu, MSR_TSC, tsc); in mperf_get_tsc()
95 ret = read_msr(cpu, MSR_APERF, &val); in mperf_init_stats()
97 ret |= read_msr(cpu, MSR_MPERF, &val); in mperf_init_stats()
109 ret = read_msr(cpu, MSR_APERF, &val); in mperf_measure_stats()
111 ret |= read_msr(cpu, MSR_MPERF, &val); in mperf_measure_stats()
255 ret = read_msr(0, MSR_AMD_HWCR, &hwcr); in init_maxfreq_mode()
Dsnb_idle.c82 if (read_msr(cpu, msr, val)) in snb_get_count()
Dhsw_ext_idle.c84 if (read_msr(cpu, msr, val)) in hsw_ext_get_count()
Dnhm_idle.c96 if (read_msr(cpu, msr, val)) in nhm_get_count()