Skip to content

Commit

Permalink
Update raw-cpuid from v9.0.0 to v10.0.0 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc authored Jul 27, 2021
1 parent 334fcff commit 79bc679
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pic8259 = "0.10.0"
rand = { version = "0.8.4", default-features = false }
rand_chacha = { version = "0.3.0", default-features = false }
rand_core = { version = "0.6.3", default-features = false }
raw-cpuid = "9.0.0"
raw-cpuid = "10.0.0"
sha2 = { version = "0.9.5", default-features = false, features = ["force-soft"] }
smoltcp = { version = "0.7.5", default-features = false, features = ["alloc", "ethernet", "socket-tcp", "socket-udp", "proto-ipv4", "proto-dhcpv4"] }
spin = "0.9.2"
Expand Down
6 changes: 2 additions & 4 deletions src/sys/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ pub fn init() {
log!("CPU {}\n", vendor_info);
}

if let Some(extended_function_info) = cpuid.get_extended_function_info() {
if let Some(processor_brand_string) = extended_function_info.processor_brand_string() {
log!("CPU {}\n", processor_brand_string.trim());
}
if let Some(processor_brand_string) = cpuid.get_processor_brand_string() {
log!("CPU {}\n", processor_brand_string.as_str().trim());
}

if let Some(processor_frequency_info) = cpuid.get_processor_frequency_info() {
Expand Down

0 comments on commit 79bc679

Please sign in to comment.