mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-13 11:10:39 +00:00
Add cpuid_get_total_cpus to allow getting the total number of CPUs on systems without CPUID.
This commit is contained in:
parent
400c55dbe3
commit
f7e6c6b274
2 changed files with 11 additions and 0 deletions
|
@ -317,6 +317,11 @@ static void make_list_from_string(const char* csv, struct cpu_list_t* list)
|
|||
|
||||
/* Interface: */
|
||||
|
||||
int cpuid_get_total_cpus(void)
|
||||
{
|
||||
return get_total_cpus();
|
||||
}
|
||||
|
||||
int cpuid_present(void)
|
||||
{
|
||||
return cpuid_exists_by_eflags();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue