#ifndef CPUS_H #define CPUS_H #include #include "built_in.h" #include "die.h" static inline unsigned int get_number_cpus(void) { int ret = sysconf(_SC_NPROCESSORS_CONF); if (unlikely(ret <= 0)) panic("get_number_cpus error!\n"); return ret; } static inline unsigned int get_number_cpus_online(void) { int ret = sysconf(_SC_NPROCESSORS_ONLN); if (unlikely(ret <= 0)) panic("get_number_cpus_online error!\n"); return ret; } #endif /* CPUS_H */ 'net-next.git Git repository'/>
summaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--Makefile506logplain
-rw-r--r--ak4xxx.c5091logplain
-rw-r--r--amp.c2772logplain
-rw-r--r--amp.h1594logplain
-rw-r--r--aureon.c62319logplain
-rw-r--r--aureon.h2419logplain
-rw-r--r--delta.c26497logplain