1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-20 23:01:51 +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:
Veselin Georgiev 2014-09-27 18:08:36 +03:00
parent dcbee3517f
commit 325904f498
3 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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

View file

@ -24,3 +24,4 @@ cpu_rdmsr
cpu_msrinfo
cpu_msr_driver_close
cpu_clock_by_ic
cpuid_get_total_cpus