#1012381 linuxinfo package can't get total bogomips on riscv arch

Package:
linuxinfo
Source:
linuxinfo
Description:
Displays extended system information
Submitter:
xiao sheng wen
Date:
2022-06-06 05:48:05 UTC
Severity:
normal
Tags:
#1012381#5
Date:
2022-06-06 02:42:27 UTC
From:
To:
Hi,

linuxinfo run on riscv arch, there is not bogomips info:

Linux Debian-StarFive 5.18.0-starfive-5.18 #1 SMP Sun May 29 16:49:26 CST 2022
Two sifive,u74-mc processors, ? total bogomips, 7178M RAM
System library 2.33.0

But in board's dmesg output, it has the BogoMIPS info exist:

dmesg|grep -i bogomips
[    0.018835] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)


Regards,
xiao sheng wen(肖盛文)

#1012381#10
Date:
2022-06-06 05:40:32 UTC
From:
To:
tags 1012381 + help upstream
thanks

Hello xiao,

Yes, this is known and would require a serious design change. Currently
only /proc/cpuinfo is analyzed, but not all architectures present it
there. As this variable is by name „bogous“ this has low priority for
me, as I would need to find out where else I can get this from.

So if you want this (fast), then I'd welcome patches or ideas where to
retrieve this values from other sources.

Greetings

          Helge