mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Query CPU info at least once even if set_cpu_affinity() fails
This commit is contained in:
parent
54ed9a0a17
commit
37462ab492
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ int cpuid_get_all_raw_data(struct cpu_raw_data_array_t* data)
|
|||
bool affinity_saved = save_cpu_affinity();
|
||||
|
||||
cpu_raw_data_array_t_constructor(data, true);
|
||||
while (set_cpu_affinity(logical_cpu)) {
|
||||
while (set_cpu_affinity(logical_cpu) || logical_cpu == 0) {
|
||||
debugf(2, "Getting raw dump for logical CPU %i\n", logical_cpu);
|
||||
cpuid_grow_raw_data_array(data, logical_cpu + 1);
|
||||
raw_ptr = &data->raw[logical_cpu];
|
||||
|
|
Loading…
Reference in a new issue