mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
85128e2962
Due to a kernel commit (b4b8f770e), cpuinfo format has changed on ARMs. Firstly, 'Processor: ...' may not be reported, it's replaced by 'model name: ...'. Secondly, the "Processor" string may occur in CPU name, e.g. 'ARMv7 Processor rev 5 (v7l)'. Therefore, we must firstly look for 'model name' and then for 'Processor' if not found. Moreover, lines in the cpuinfo file are shuffled, so we better not manipulate the pointer to start of internal buffer as we may lost some info. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
processor : 0
|
|
model name : ARMv7 Processor rev 5 (v7l)
|
|
BogoMIPS : 38.40
|
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
|
|
CPU implementer : 0x41
|
|
CPU architecture: 7
|
|
CPU variant : 0x0
|
|
CPU part : 0xc07
|
|
CPU revision : 5
|
|
|
|
processor : 1
|
|
model name : ARMv7 Processor rev 5 (v7l)
|
|
BogoMIPS : 38.40
|
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
|
|
CPU implementer : 0x41
|
|
CPU architecture: 7
|
|
CPU variant : 0x0
|
|
CPU part : 0xc07
|
|
CPU revision : 5
|
|
|
|
processor : 2
|
|
model name : ARMv7 Processor rev 5 (v7l)
|
|
BogoMIPS : 38.40
|
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
|
|
CPU implementer : 0x41
|
|
CPU architecture: 7
|
|
CPU variant : 0x0
|
|
CPU part : 0xc07
|
|
CPU revision : 5
|
|
|
|
processor : 3
|
|
model name : ARMv7 Processor rev 5 (v7l)
|
|
BogoMIPS : 38.40
|
|
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
|
|
CPU implementer : 0x41
|
|
CPU architecture: 7
|
|
CPU variant : 0x0
|
|
CPU part : 0xc07
|
|
CPU revision : 5
|
|
|
|
Hardware : BCM2709
|
|
Revision : a01041
|
|
Serial : 00000000c9e9323d
|