mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-22 20:57:45 +00:00
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>
|
||
|---|---|---|
| .. | ||
| helpers | ||
| idle_monitor | ||
| builtin.h | ||
| cpufreq-info.c | ||
| cpufreq-set.c | ||
| cpuidle-info.c | ||
| cpuidle-set.c | ||
| cpupower-info.c | ||
| cpupower-set.c | ||
| cpupower.c | ||
| version-gen.sh | ||