]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.xen/xen3-rwlocks-enable-interrupts
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.xen / xen3-rwlocks-enable-interrupts
1 From: Petr Tesarik <ptesarik@suse.cz>
2 Subject: Allow rwlocks to re-enable interrupts
3 References: bnc#387784
4 Mainline: no
5
6 Pass the original flags to rwlock arch-code, so that it can re-enable
7 interrupts if desired.
8
9 Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
10
11 Automatically created from "patches.suse/rwlocks-enable-interrupts" by xen-port-patches.py
12
13 --- sle11-2009-06-04.orig/include/asm-x86/mach-xen/asm/spinlock.h 2009-06-04 11:09:05.000000000 +0200
14 +++ sle11-2009-06-04/include/asm-x86/mach-xen/asm/spinlock.h 2009-06-04 11:09:50.000000000 +0200
15 @@ -443,6 +443,9 @@ static inline void __raw_write_unlock(ra
16 : "+m" (rw->lock) : "i" (RW_LOCK_BIAS) : "memory");
17 }
18
19 +#define __raw_read_lock_flags(lock, flags) __raw_read_lock(lock)
20 +#define __raw_write_lock_flags(lock, flags) __raw_write_lock(lock)
21 +
22 #define _raw_spin_relax(lock) cpu_relax()
23 #define _raw_read_relax(lock) cpu_relax()
24 #define _raw_write_relax(lock) cpu_relax()