]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: Adapt MIPS cpuinfo
authorKarel Zak <kzak@redhat.com>
Tue, 3 Nov 2020 11:22:20 +0000 (12:22 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
Port commit

  commit 6cb8af7be2d76cfd9201f141fa2d69fa2ed32deb
  Author: Jiaxun Yang <jiaxun.yang@flygoat.com>
  Date:   Sat Mar 28 12:19:42 2020 +0800

to new lscpu code.

References: 6cb8af7be2d76cfd9201f141fa2d69fa2ed32deb
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c

index 18369267a42dbd2aaa9dd63307944be38e163c2c..eacbb87b58c9c63c195e8bf7ed24b0c9593d1abb 100644 (file)
@@ -183,6 +183,7 @@ enum {
 static const struct cpuinfo_pattern type_patterns[] =
 {
        /* Sort by fields name! */
+       DEF_PAT_CPUTYPE( "ASEs implemented",    PAT_FLAGS,      flags),         /* mips */
        DEF_PAT_CPUTYPE( "BogoMIPS",            PAT_BOGOMIPS,   bogomips),      /* aarch64 */
        DEF_PAT_CPUTYPE( "CPU implementer",     PAT_IMPLEMENTER,vendor),        /* ARM and aarch64 */
        DEF_PAT_CPUTYPE( "CPU part",            PAT_PART,       model),         /* ARM and aarch64 */
@@ -193,6 +194,7 @@ static const struct cpuinfo_pattern type_patterns[] =
        DEF_PAT_CPUTYPE( "bogomips per cpu",    PAT_BOGOMIPS,   bogomips),      /* s390 */
        DEF_PAT_CPUTYPE( "cpu",                 PAT_CPU,        modelname),     /* ppc, sparc */
        DEF_PAT_CPUTYPE( "cpu family",          PAT_FAMILY,     family),
+       DEF_PAT_CPUTYPE( "cpu model",           PAT_MODEL,      model),         /* mips */
        DEF_PAT_CPUTYPE( "family",              PAT_FAMILY,     family),
        DEF_PAT_CPUTYPE( "features",            PAT_FEATURES,   flags),         /* s390 */
        DEF_PAT_CPUTYPE( "flags",               PAT_FLAGS,      flags),         /* x86 */