AArch64: fix an issue with older /proc/cpuinfo layout
There are two /proc/cpuinfo layots in use for AArch64: old and new.
The old one has all 'processor : n' lines in one section, hence
checking for duplications does not make sense.
Differential D41000
AArch64: fix cpuinfo issues pawosm01 on Dec 7 2017, 11:10 PM. Authored by
Details AArch64: fix an issue with older /proc/cpuinfo layout There are two /proc/cpuinfo layots in use for AArch64: old and new.
Diff Detail
Event TimelineComment Actions I already have https://reviews.llvm.org/D40357 for review which does the same (except skipping the duplicate cpuinfo). It is currently blocked by https://reviews.llvm.org/D40722, maybe you could take a look there, ARM should suffer from the same problem.
Comment Actions Example of old format layout (note that 'Processor :' and 'processor :' won't collide as we don't call strncasecmp()): $ cat /proc/cpuinfo Hardware : jetson_tx1 Brief analysis of the code (after my changes) showed it does the right thing for the example above. This pattern (two sections, "Processor" and "Hardware" with all the "processor" entries listed only in the first one) is consistent across different machines with old /proc/cpuinfo layout. Comment Actions LGTM if you add a comment in the code explaining why we need this (old format) and that this effectively disables error detection in the new format on AArch64 |