#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 ext.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-03 16:40:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-03 16:40:21 -0800
commit0cb65c83304a341b9d09678448d7c8b550689531 (patch)
treeef0c7158b4c065feb39fa59dbeea1d68b5eac2c0 /net/sched
parent3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (diff)
parentab7cd8d83e5dba13027de66f1b008b08b30b71a4 (diff)
Merge tag 'drm-fixes-for-v4.9-rc8' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie: "A pretty small pull request: a couple of AMD powerxpress regression fixes and a power management fix, a couple of i915 fixes and one hdlcd fix, along with one core don't oops because of incorrect API usage fix" * tag 'drm-fixes-for-v4.9-rc8' of git://people.freedesktop.org/~airlied/linux: drm/i915: drop the struct_mutex when wedged or trying to reset drm/i915: Don't touch NULL sg on i915_gem_object_get_pages_gtt() error drm: Don't call drm_for_each_crtc with a non-KMS driver drm/radeon: fix check for port PM availability drm/amdgpu: fix check for port PM availability drm/amd/powerplay: initialize the soft_regs offset in struct smu7_hwmgr drm: hdlcd: Fix cleanup order
Diffstat (limited to 'net/sched')