summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/intel_pstate/Makefile
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2015-11-18 20:04:48 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2015-11-23 23:30:59 +0300
commited2d26d7cbccb1aa719a5d3fb8e87ef6610cb530 (patch)
treebd01c870e88e65bdf0dd6e0794fcf0d1f12d7ee0 /tools/testing/selftests/intel_pstate/Makefile
parent7e722473811a4f82a48bb2ef934ff44ca9ab8fa5 (diff)
downloadlinux-ed2d26d7cbccb1aa719a5d3fb8e87ef6610cb530.tar.xz
tools, testing, add test for intel_pstate driver
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>
Diffstat (limited to 'tools/testing/selftests/intel_pstate/Makefile')
-rw-r--r--tools/testing/selftests/intel_pstate/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/testing/selftests/intel_pstate/Makefile b/tools/testing/selftests/intel_pstate/Makefile
new file mode 100644
index 000000000000..f5f1a28715ff
--- /dev/null
+++ b/tools/testing/selftests/intel_pstate/Makefile
@@ -0,0 +1,15 @@
+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)