summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-09-16 16:05:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-21 07:17:08 +0200
commit254b9b2971a71ddaa3623cd665bbebc862a05937 (patch)
tree23b59705e952f96102cb0e4f03acaa5b42a450c2 /tools/perf/scripts/python/call-graph-from-postgresql.py
parenta85a0d9f37964b1f721764de6092acc1e19dc466 (diff)
tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2
[ Upstream commit adb8049097a9ec4acd09fbd3aa8636199a78df8a ] 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 <ben@decadent.org.uk> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions