1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-03 18:41:54 +01:00

Cpuinfo: extract CPU featurs from "flags" entry

get_cpu_features() now checks "flags" entry as well as "Features"
entries in cpuinfo section.
This commit is contained in:
Sergei Trofimov
2015-12-15 18:07:34 +00:00
parent a1e991c12f
commit 59f4f81447

View File

@@ -860,8 +860,12 @@ class Cpuinfo(object):
continue
if 'Features' in section:
return section.get('Features').split()
elif 'flags' in section:
return section.get('flags').split()
elif 'Features' in section:
global_features = section.get('Features').split()
elif 'flags' in section:
global_features = section.get('flags').split()
return global_features
def parse(self, text):