linux/tools/power/cpupower/utils/idle_monitor
Janakarajan Natarajan 6af2ed53f0 cpupower: mperf_monitor: Update cpupower to use the RDPRU instruction
AMD Zen 2 introduces the RDPRU instruction which can be used to access some
processor registers which are typically only accessible in privilege level
0. ECX specifies the register to read and EDX:EAX will contain the value read.

ECX: 0 - Register MPERF
     1 - Register APERF

This has the added advantage of not having to use the msr module, since the
userspace to kernel transitions which occur during each read_msr() might
cause APERF and MPERF to go out of sync.

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2019-11-05 17:22:56 -07:00
..
amd_fam14h_idle.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00
cpuidle_sysfs.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00
cpupower-monitor.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00
cpupower-monitor.h cpupower: mperf_monitor: Introduce per_cpu_schedule flag 2019-11-05 17:22:46 -07:00
hsw_ext_idle.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00
idle_monitors.def cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states 2013-07-05 01:52:19 +02:00
idle_monitors.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166 2019-05-30 11:26:39 -07:00
mperf_monitor.c cpupower: mperf_monitor: Update cpupower to use the RDPRU instruction 2019-11-05 17:22:56 -07:00
nhm_idle.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00
snb_idle.c cpupower: Move needs_root variable into a sub-struct 2019-11-05 17:22:01 -07:00