From: Karel Zak Date: Tue, 3 Nov 2020 11:22:20 +0000 (+0100) Subject: lscpu: Adapt MIPS cpuinfo X-Git-Tag: v2.37-rc1~297 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60e7ccb8e8ae6c843939d4bdcf90d715ea18886e;p=thirdparty%2Futil-linux.git lscpu: Adapt MIPS cpuinfo Port commit commit 6cb8af7be2d76cfd9201f141fa2d69fa2ed32deb Author: Jiaxun Yang Date: Sat Mar 28 12:19:42 2020 +0800 to new lscpu code. References: 6cb8af7be2d76cfd9201f141fa2d69fa2ed32deb Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu-cputype.c b/sys-utils/lscpu-cputype.c index 18369267a4..eacbb87b58 100644 --- a/sys-utils/lscpu-cputype.c +++ b/sys-utils/lscpu-cputype.c @@ -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 */