ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-i386/smp_alt.h @ 9296:f85bb99187bf

Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 15 19:19:22 2006 +0100 (2006-03-15)
parents fd9b2c1bb577
children
line source
1 #ifndef __ASM_SMP_ALT_H__
2 #define __ASM_SMP_ALT_H__
4 #include <linux/config.h>
6 #ifdef CONFIG_SMP
7 #if defined(CONFIG_SMP_ALTERNATIVES) && !defined(MODULE)
8 #define LOCK \
9 "6677: nop\n" \
10 ".section __smp_alternatives,\"a\"\n" \
11 ".long 6677b\n" \
12 ".long 6678f\n" \
13 ".previous\n" \
14 ".section __smp_replacements,\"a\"\n" \
15 "6678: .byte 1\n" \
16 ".byte 1\n" \
17 ".byte 0\n" \
18 ".byte 1\n" \
19 ".byte -1\n" \
20 "lock\n" \
21 "nop\n" \
22 ".previous\n"
23 void prepare_for_smp(void);
24 void unprepare_for_smp(void);
25 #else
26 #define LOCK "lock ; "
27 #endif
28 #else
29 #define LOCK ""
30 #endif
32 #endif /* __ASM_SMP_ALT_H__ */