libvirt/tests/virhostcpudata
Andrea Bolognani a63ea8141b util: Don't report CPU frequency for ARM hosts
Some ARM platforms, such as the original Raspberry Pi, report the
CPU frequency in the BogoMIPS field of /proc/cpuinfo, so libvirt
parsed that field and returned it through its API.

However, not only many more boards don't report any value there,
but several - including ARMv8-based server hardware, and even the
more recent Raspberry Pi 3 - use this field as originally intended:
to report the BogoMIPS value instead of the CPU frequency.

Since we have no way of detecting how the field is being used,
it's better to report no information at all rather than something
ludicrous like "your shiny 96-core aarch64 virtualization host's
CPUs are running at a whopping 100 MHz".

Partially-resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1206353

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-01-08 14:22:53 +01:00
..
linux-caches1/cpu tests: Add linux-caches sysfs entries for vircaps2xmltest 2017-03-27 13:13:29 +02:00
linux-deconf-cpus tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-f21-mustang/cpu tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-raspberrypi/cpu tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-rhel74-moonshot tests: Add host CPU data for Moonshot (RHEL 7.4) 2018-01-08 13:48:39 +01:00
linux-rhelsa-3.19.0-mustang/cpu tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-subcores1 tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-subcores2 tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-subcores3 tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-test1 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test2 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test3 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test4 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test5/cpu tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test6 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test7 tests: Add cpu/{online,present} files for old tests 2017-03-27 13:13:29 +02:00
linux-test8 tests: Remove some unneeded files 2017-03-27 13:13:29 +02:00
linux-aarch64-f21-mustang.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-aarch64-f21-mustang.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-aarch64-rhel74-moonshot.cpuinfo tests: Add host CPU data for Moonshot (RHEL 7.4) 2018-01-08 13:48:39 +01:00
linux-aarch64-rhel74-moonshot.expected util: Don't report CPU frequency for ARM hosts 2018-01-08 14:22:53 +01:00
linux-aarch64-rhelsa-3.19.0-mustang.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-aarch64-rhelsa-3.19.0-mustang.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-armv6l-raspberrypi.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-armv6l-raspberrypi.expected util: Don't report CPU frequency for ARM hosts 2018-01-08 14:22:53 +01:00
linux-cpustat-24cpu.out nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-cpustat-24cpu.stat nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-deconf-cpus.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-deconf-cpus.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores1.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores1.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores2.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores2.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores3.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc64-subcores3.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc-test1.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-ppc-test1.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test1.cpuinfo util: Improve CPU frequency parsing 2018-01-08 13:48:44 +01:00
linux-x86_64-test1.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test2.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test2.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test3.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test3.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test4.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test4.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test5.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test5.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test6.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test6.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test7.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test7.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test8.cpuinfo nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00
linux-x86_64-test8.expected nodeinfo: move host CPU APIs out into virhostcpu.c file 2016-06-09 18:31:11 +01:00