aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2018-09-16 15:05:53 +0000
committerLen Brown <[email protected]>2019-08-31 18:48:24 +0000
commitadb8049097a9ec4acd09fbd3aa8636199a78df8a (patch)
tree53f64a739d15e67245f156603a4a2fbe3be10e94 /tools/perf/scripts/python/net_dropmonitor.py
parentLinux 5.3-rc6 (diff)
downloadkernel-adb8049097a9ec4acd09fbd3aa8636199a78df8a.tar.gz
kernel-adb8049097a9ec4acd09fbd3aa8636199a78df8a.zip
tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2
x86_energy_perf_policy first uses __get_cpuid() to check the maximum CPUID level and exits if it is too low. It then assumes that later calls will succeed (which I think is architecturally guaranteed). It also assumes that CPUID works at all (which is not guaranteed on x86_32). If optimisations are enabled, gcc warns about potentially uninitialized variables. Fix this by adding an exit-on-error after every call to __get_cpuid() instead of just checking the maximum level. Signed-off-by: Ben Hutchings <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions