aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/Makefile
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-08-23 15:01:53 +0200
committerJan Beulich <jbeulich@suse.com>2013-08-23 15:01:53 +0200
commit829b8498cc781f5ed8f7b9e16378f448b4d45213 (patch)
treefa6057dc0bf1586818a82815a0fff3243a969f21 /xen/common/Makefile
parent3829655bd3ad2b1150bd94955fc6988dec6b98f2 (diff)
downloadxen-829b8498cc781f5ed8f7b9e16378f448b4d45213.tar.gz
xen-829b8498cc781f5ed8f7b9e16378f448b4d45213.tar.bz2
xen-829b8498cc781f5ed8f7b9e16378f448b4d45213.zip
un-alias cpumask_any() from cpumask_first()
In order to achieve more symmetric distribution of certain things, cpumask_any() shouldn't always pick the first CPU (which frequently will end up being CPU0). To facilitate that, introduce a library-like function to obtain random numbers. The per-architecture function is supposed to return zero if no valid random number can be obtained (implying that if occasionally zero got produced as random number, it wouldn't be considered such). As fallback this uses the trivial algorithm from the C standard, extended to produce "unsigned int" results. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Reviewed-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/common/Makefile')
-rw-r--r--xen/common/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 0dc20506cc..5486140888 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -17,6 +17,7 @@ obj-y += multicall.o
obj-y += notifier.o
obj-y += page_alloc.o
obj-y += preempt.o
+obj-y += random.o
obj-y += rangeset.o
obj-y += sched_credit.o
obj-y += sched_credit2.o