Bjoern Walk 0764fc8ad1 util: virhostcpu: factor out frequency parsing
All different architectures use the same copy-pasted code to parse
processor frequency information from /proc/cpuinfo. Let's extract that
code into a function to avoid repetition.

We now also tolerate if the parsing of /proc/cpuinfo is not successful
and just report a warning instead of bailing out and abandoning the rest
of the CPU information.

Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
2018-01-08 13:48:44 +01:00
..
2017-11-03 13:24:12 +01:00
2016-06-16 06:17:58 -04:00
2017-11-18 10:45:10 +01:00
2017-11-18 10:45:10 +01:00
2017-10-16 10:29:32 -04:00
2017-10-16 10:29:32 -04:00
2017-10-10 09:27:00 +01:00
2017-05-02 17:27:13 +01:00
2017-11-03 13:24:12 +01:00
2016-02-11 11:35:02 +01:00
2016-06-16 13:09:19 -04:00
2017-01-25 09:18:49 +01:00
2017-05-26 20:00:51 +04:00
2017-07-26 15:31:25 +02:00
2017-07-26 15:31:25 +02:00
2017-01-04 12:47:01 +01:00
2017-05-16 16:48:30 +02:00
2017-11-03 13:24:12 +01:00
2017-06-12 19:11:30 -04:00
2016-08-02 14:20:31 +02:00
2016-08-02 14:20:31 +02:00
2016-10-13 17:58:56 +08:00
2016-03-18 09:43:45 +01:00
2016-07-28 08:27:13 -04:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-03-22 09:01:32 +01:00
2017-11-03 13:24:12 +01:00
2017-12-05 11:28:19 +01:00
2016-12-15 09:25:16 +01:00
2017-11-18 10:45:10 +01:00
2017-11-18 10:45:10 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00