From: Heiko Carstens <heiko.carstens@xxxxxxxxxx> s390 has a "bogomips per cpu" string instead of a "bogomips" string in /proc/sysinfo. So add a second bogomips lookup which detects the s390 variant. Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx> --- sys-utils/lscpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 027a298..1481fef 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -369,6 +369,8 @@ read_basicinfo(struct lscpu_desc *desc) else if (lookup(buf, "cpu MHz", &desc->mhz)) ; else if (lookup(buf, "flags", &desc->flags)) ; else if (lookup(buf, "bogomips", &desc->bogomips)) ; + /* S390 */ + else if (lookup(buf, "bogomips per cpu", &desc->bogomips)) ; else continue; } -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html