mirror of
https://github.com/anrieff/libcpuid
synced 2025-02-12 20:24:05 +00:00
RDMSR: fix wrong values after using cpu_msr_driver_close()
This commit is contained in:
parent
660cde12c7
commit
45158da967
1 changed files with 1 additions and 1 deletions
|
@ -936,11 +936,11 @@ int cpu_msrinfo(struct msr_driver_t* handle, cpu_msrinfo_request_t which)
|
|||
return CPU_INVALID_VALUE;
|
||||
}
|
||||
|
||||
info.handle = handle;
|
||||
if (!init) {
|
||||
err = cpuid_get_raw_data(&raw);
|
||||
err += cpu_ident_internal(&raw, &id, &internal);
|
||||
info.cpu_clock = cpu_clock_measure(250, 1);
|
||||
info.handle = handle;
|
||||
info.id = &id;
|
||||
info.internal = &internal;
|
||||
init = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue