diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-30 16:17:07 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-30 16:17:07 +0100 |
commit | abfd726ed8afbfc2cf7f18ae2da030ef016c1ad0 (patch) | |
tree | b95b21fbbd4467f67f0094d226ae531131f298e3 /unmodified_drivers/linux-2.6/compat-include/xen | |
parent | f4f4412534fa757de3aaeaaa8d67214c5763751b (diff) | |
download | xen-abfd726ed8afbfc2cf7f18ae2da030ef016c1ad0.tar.gz xen-abfd726ed8afbfc2cf7f18ae2da030ef016c1ad0.tar.bz2 xen-abfd726ed8afbfc2cf7f18ae2da030ef016c1ad0.zip |
PV-on-HVM: Define DEFINE_RWLOCK() macro for older Linux kernels.
Signed-off-by: Ben Guthro <bguthro@virtualron.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/compat-include/xen')
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index ad53d95b79..54a81f6ee9 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -116,4 +116,13 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...) #define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED #endif +/* Bug in RHEL4-U3: rw_lock_t is mistakenly defined in DEFINE_RWLOCK() macro */ +#if defined(__LINUX_SPINLOCK_H) && defined(DEFINE_RWLOCK) +#define rw_lock_t rwlock_t +#endif + +#if defined(__LINUX_SPINLOCK_H) && !defined(DEFINE_RWLOCK) +#define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED +#endif + #endif |