[PATCH 2/9] global on module level is not best practice

From: Elisha Hollander
Date: Mon May 24 2021 - 11:05:09 EST


---
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py | 2 --
1 file changed, 2 deletions(-)

diff --git a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
index e15e20696d17..427ee20d9e4a 100755
--- a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
+++ b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
@@ -63,8 +63,6 @@ C_USEC = 3
C_SEC = 2
C_CPU = 1

-global sample_num, last_sec_cpu, last_usec_cpu, start_time, testname
-
# 11 digits covers uptime to 115 days
getcontext().prec = 11

--
2.25.1