acrn-kernel/tools/power/cpupower/utils
Mike Gilbert 2de7fb60a4 cpupower: avoid multiple definition with gcc -fno-common
Building cpupower with -fno-common in CFLAGS results in errors due to
multiple definitions of the 'cpu_count' and 'start_time' variables.

./utils/idle_monitor/snb_idle.o:./utils/idle_monitor/cpupower-monitor.h:28:
multiple definition of `cpu_count';
./utils/idle_monitor/nhm_idle.o:./utils/idle_monitor/cpupower-monitor.h:28:
first defined here
...
./utils/idle_monitor/cpuidle_sysfs.o:./utils/idle_monitor/cpuidle_sysfs.c:22:
multiple definition of `start_time';
./utils/idle_monitor/amd_fam14h_idle.o:./utils/idle_monitor/amd_fam14h_idle.c:85:
first defined here

The -fno-common option will be enabled by default in GCC 10.

Bug: https://bugs.gentoo.org/707462
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-03-02 08:53:34 -07:00
..
helpers cpupower: mperf_monitor: Update cpupower to use the RDPRU instruction 2019-11-05 17:22:56 -07:00
idle_monitor cpupower: avoid multiple definition with gcc -fno-common 2020-03-02 08:53:34 -07:00
builtin.h
cpufreq-info.c cpupower: Revert library ABI changes from commit ae2917093f 2020-01-17 15:21:42 -07:00
cpufreq-set.c
cpuidle-info.c
cpuidle-set.c
cpupower-info.c cpupower : Handle set and info subcommands correctly 2019-11-04 13:11:57 -07:00
cpupower-set.c cpupower : Handle set and info subcommands correctly 2019-11-04 13:11:57 -07:00
cpupower.c
version-gen.sh