linux/tools/power/x86
Ben Hutchings adb8049097 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 <ben@decadent.org.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
2019-08-31 14:48:24 -04:00
..
intel_pstate_tracer treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 466 2019-06-19 17:09:10 +02:00
intel-speed-select tools/power/x86/intel-speed-select: Add .gitignore file 2019-07-12 16:00:38 +03:00
turbostat treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix "uninitialized variable" warnings at -O2 2019-08-31 14:48:24 -04:00