mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
Export the new API function, cpuid_get_total_cpus, in win32 DLLs.
To test it, the --total-cpus option to cpuid_tool calls this function directly. Confirmed to work now on Windows.
This commit is contained in:
parent
dcbee3517f
commit
325904f498
3 changed files with 3 additions and 1 deletions
|
@ -356,7 +356,7 @@ static void print_info(output_data_switch query, struct cpu_raw_data_t* raw,
|
|||
fprintf(fout, "%d\n", data->num_logical_cpus);
|
||||
break;
|
||||
case NEED_TOTAL_CPUS:
|
||||
fprintf(fout, "%d\n", data->total_logical_cpus);
|
||||
fprintf(fout, "%d\n", cpuid_get_total_cpus());
|
||||
break;
|
||||
case NEED_L1D_SIZE:
|
||||
fprintf(fout, "%d\n", data->l1_data_cache);
|
||||
|
|
|
@ -27,3 +27,4 @@ cpu_rdmsr @23
|
|||
cpu_msrinfo @24
|
||||
cpu_msr_driver_close @25
|
||||
cpu_clock_by_ic @26
|
||||
cpuid_get_total_cpus @27
|
||||
|
|
|
@ -24,3 +24,4 @@ cpu_rdmsr
|
|||
cpu_msrinfo
|
||||
cpu_msr_driver_close
|
||||
cpu_clock_by_ic
|
||||
cpuid_get_total_cpus
|
||||
|
|
Loading…
Reference in a new issue