#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 */ it.distanz.ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-02-10Merge tag 'mac80211-next-for-davem-2017-02-09' of git://git.kernel.org/pub/sc...David S. Miller14-178/+105
2017-02-09mac80211: fix CSA in IBSS modeKoen Vandeputte1-2/+2
2017-02-09cfg80211: fix NAN bands definitionLuca Coelho2-10/+10
2017-02-08cfg80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski1-1/+1
2017-02-08mac80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski2-7/+11
2017-02-08mac80211: check for allocation failure in debugfs codeDan Carpenter1-2/+9
2017-02-08mac80211: aes-cmac: switch to shash CMAC driverArd Biesheuvel3-107/+32
2017-02-08mac80211: fils_aead: Use crypto api CMAC shash rather than bare cipherArd Biesheuvel3-45/+34
2017-02-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller