Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/power/x86/intel_pstate_tracer: python minimum version

Change the minimum python version from 2.7 to 3.6.
Remove a 2.X backwards compatibility line.

Signed-off-by: Doug Smythies <dsmythies@telus.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Tested-by: Swapnil Sapkal <Swapnil.Sapkal@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Doug Smythies and committed by
Rafael J. Wysocki
e68cb15b ce9ecca0

+6 -6
+6 -6
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
··· 1 - #!/usr/bin/env python 1 + #!/usr/bin/env python3 2 2 # SPDX-License-Identifier: GPL-2.0-only 3 3 # -*- coding: utf-8 -*- 4 4 # ··· 11 11 and generates performance plots. 12 12 13 13 Prerequisites: 14 - Python version 2.7.x or higher 14 + Python version 3.6.x or higher 15 15 gnuplot 5.0 or higher 16 - gnuplot-py 1.8 or higher 16 + python3-gnuplot 1.8 or higher 17 17 (Most of the distributions have these required packages. They may be called 18 - gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... ) 18 + gnuplot-py, python-gnuplot or python3-gnuplot, gnuplot-nox, ... ) 19 19 20 20 HWP (Hardware P-States are disabled) 21 21 Kernel config for Linux trace is enabled ··· 23 23 see print_help(): for Usage and Output details 24 24 25 25 """ 26 - from __future__ import print_function 26 + 27 27 from datetime import datetime 28 28 import subprocess 29 29 import os ··· 562 562 563 563 # Temporary (or perhaps not) 564 564 cur_version = sys.version_info 565 - print('python version (should be >= 2.7):') 565 + print('python version (should be >= 3.6):') 566 566 print(cur_version) 567 567 568 568 # Left as "cleanup" for potential future re-run ability.