8 static inline unsigned int get_number_cpus(void)
10 int ret
= sysconf(_SC_NPROCESSORS_CONF
);
12 if (unlikely(ret
<= 0))
13 panic("get_number_cpus error!\n");
18 static inline unsigned int get_number_cpus_online(void)
20 int ret
= sysconf(_SC_NPROCESSORS_ONLN
);
22 if (unlikely(ret
<= 0))
23 panic("get_number_cpus_online error!\n");