#include #include #include int __next_node_in(int node, const nodemask_t *srcp) { int ret = __next_node(node, srcp); if (ret == MAX_NUMNODES) ret = __first_node(srcp); return ret; } EXPORT_SYMBOL(__next_node_in); #ifdef CONFIG_NUMA /* * Return the bit number of a random bit set in the nodemask. * (returns NUMA_NO_NODE if nodemask is empty) */ int node_random(const nodemask_t *maskp) { int w, bit = NUMA_NO_NODE; w = nodes_weight(*maskp); if (w) bit = bitmap_ord_to_pos(maskp->bits, get_random_int() % w, MAX_NUMNODES); return bit; } #endif 'logo' rowspan='2'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-02-09cfg80211: fix NAN bands definitionLuca Coelho2-36/+39
2017-02-08cfg80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski2-1/+5
2017-02-08mac80211: Pass new RSSI level in CQM RSSI notificationAndrzej Zaborowski1-0/+2
2017-02-08nl80211: add HT/VHT capabilities to AP parametersJohannes Berg2-1/+10