mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 14:03:47 +07:00
ed2d26d7cb
This test used the cpupower utility to set the cpu frequency from the maximum turbo value to the minimum supported value in steps of 100 MHz. The results are displayed in a table which indicate the "Target" state, or the requested frequency in MHz, the Actual frequency, as read from /proc/cpuinfo, the difference between the Target and Actual frequencies, and the value of MSR 0x199 (MSR_IA32_PERF_CTL) which indicates what pstate the cpu is in, and the value of /sys/devices/system/cpu/intel_pstate/max_perf_pct X maximum turbo state Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: linux-api@vger.kernel.org Signed-off-by: Prarit Bhargava <prarit@redhat.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
16 lines
232 B
Makefile
16 lines
232 B
Makefile
CC := $(CROSS_COMPILE)gcc
|
|
CFLAGS := $(CFLAGS) -Wall -D_GNU_SOURCE
|
|
LDFLAGS := $(LDFLAGS) -lm
|
|
|
|
TARGETS := msr aperf
|
|
|
|
TEST_PROGS := $(TARGETS) run.sh
|
|
|
|
.PHONY: all clean
|
|
all: $(TARGETS)
|
|
|
|
$(TARGETS): $(HEADERS)
|
|
|
|
clean:
|
|
rm -f $(TARGETS)
|