diff mbox

[i-g-t,28/29] igt/perf: load gt_boost_freq_mhz as max gt frequency

Message ID 20170425223301.23733-29-lionel.g.landwerlin@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lionel Landwerlin April 25, 2017, 10:33 p.m. UTC
We want the absolute max the hardware can do, not the max value
set by a previous application/user.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
 tests/perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tests/perf.c b/tests/perf.c
index 6026811b..3d033b3a 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -1107,7 +1107,7 @@  static void
 gt_frequency_range_save(void)
 {
 	gt_min_freq_mhz_saved = sysfs_read("gt_min_freq_mhz");
-	gt_max_freq_mhz_saved = sysfs_read("gt_max_freq_mhz");
+	gt_max_freq_mhz_saved = sysfs_read("gt_boost_freq_mhz");
 
 	gt_min_freq_mhz = gt_min_freq_mhz_saved;
 	gt_max_freq_mhz = gt_max_freq_mhz_saved;