mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-04-27 10:55:20 +00:00
arch: add mips64 support
This commit is contained in:
parent
1b4dcf4a1a
commit
950d9f4d2c
5 changed files with 271 additions and 6 deletions
|
|
@ -190,6 +190,8 @@ fn get_cpu_freq_mhz() -> Option<u32> {
|
|||
b"cpu MHz static",
|
||||
b"CPU MHz",
|
||||
b"clock",
|
||||
// BogoMIPS on MIPS is calibrated to the clock frequency (unlike x86).
|
||||
b"BogoMIPS",
|
||||
] {
|
||||
if let Some(val) = extract_field(data, key) {
|
||||
// Parse integer part of the MHz value (e.g. "5200.00" -> 5200)
|
||||
|
|
@ -270,6 +272,7 @@ fn extract_name(data: &[u8]) -> Option<String> {
|
|||
b"model name" as &[u8],
|
||||
b"Model Name",
|
||||
b"uarch",
|
||||
b"cpu model",
|
||||
b"isa",
|
||||
b"cpu",
|
||||
b"machine",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue