mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									ce9ecca023
								
							
						
					
					
						commit
						e68cb15bdc
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
#!/usr/bin/env python
 | 
					#!/usr/bin/env python3
 | 
				
			||||||
# SPDX-License-Identifier: GPL-2.0-only
 | 
					# SPDX-License-Identifier: GPL-2.0-only
 | 
				
			||||||
# -*- coding: utf-8 -*-
 | 
					# -*- coding: utf-8 -*-
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					@ -11,11 +11,11 @@ then this utility enables and collects trace data for a user specified interval
 | 
				
			||||||
and generates performance plots.
 | 
					and generates performance plots.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Prerequisites:
 | 
					Prerequisites:
 | 
				
			||||||
    Python version 2.7.x or higher
 | 
					    Python version 3.6.x or higher
 | 
				
			||||||
    gnuplot 5.0 or higher
 | 
					    gnuplot 5.0 or higher
 | 
				
			||||||
    gnuplot-py 1.8 or higher
 | 
					    python3-gnuplot 1.8 or higher
 | 
				
			||||||
    (Most of the distributions have these required packages. They may be called
 | 
					    (Most of the distributions have these required packages. They may be called
 | 
				
			||||||
     gnuplot-py, phython-gnuplot or phython3-gnuplot, gnuplot-nox, ... )
 | 
					     gnuplot-py, python-gnuplot or python3-gnuplot, gnuplot-nox, ... )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    HWP (Hardware P-States are disabled)
 | 
					    HWP (Hardware P-States are disabled)
 | 
				
			||||||
    Kernel config for Linux trace is enabled
 | 
					    Kernel config for Linux trace is enabled
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ Prerequisites:
 | 
				
			||||||
    see print_help(): for Usage and Output details
 | 
					    see print_help(): for Usage and Output details
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
from __future__ import print_function
 | 
					
 | 
				
			||||||
from datetime import datetime
 | 
					from datetime import datetime
 | 
				
			||||||
import subprocess
 | 
					import subprocess
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
| 
						 | 
					@ -562,7 +562,7 @@ if __name__ == "__main__":
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Temporary (or perhaps not)
 | 
					    # Temporary (or perhaps not)
 | 
				
			||||||
    cur_version = sys.version_info
 | 
					    cur_version = sys.version_info
 | 
				
			||||||
    print('python version (should be >= 2.7):')
 | 
					    print('python version (should be >= 3.6):')
 | 
				
			||||||
    print(cur_version)
 | 
					    print(cur_version)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Left as "cleanup" for potential future re-run ability.
 | 
					    # Left as "cleanup" for potential future re-run ability.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue