ia64/xen-unstable

view xen/common/cpu.c @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents 822ea2bf0c54
children
line source
1 #include <xen/config.h>
2 #include <xen/cpumask.h>
4 /*
5 * cpu_bit_bitmap[] is a special, "compressed" data structure that
6 * represents all NR_CPUS bits binary values of 1<<nr.
7 *
8 * It is used by cpumask_of() to get a constant address to a CPU
9 * mask value that has a single bit set only.
10 */
12 /* cpu_bit_bitmap[0] is empty - so we can back into it */
13 #define MASK_DECLARE_1(x) [x+1][0] = 1UL << (x)
14 #define MASK_DECLARE_2(x) MASK_DECLARE_1(x), MASK_DECLARE_1(x+1)
15 #define MASK_DECLARE_4(x) MASK_DECLARE_2(x), MASK_DECLARE_2(x+2)
16 #define MASK_DECLARE_8(x) MASK_DECLARE_4(x), MASK_DECLARE_4(x+4)
18 const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)] = {
20 MASK_DECLARE_8(0), MASK_DECLARE_8(8),
21 MASK_DECLARE_8(16), MASK_DECLARE_8(24),
22 #if BITS_PER_LONG > 32
23 MASK_DECLARE_8(32), MASK_DECLARE_8(40),
24 MASK_DECLARE_8(48), MASK_DECLARE_8(56),
25 #endif
26 };