#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 */ tory'/>
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2016-08-03greybus: connection: fix offloaded-connection ping cport idJohan Hovold1-1/+1
2016-08-03greybus: control: remove some bracesJohan Hovold1-2/+1
2016-08-03greybus: remove unused protocol-version messagesJohan Hovold