[PATCH] loosen dependancy on rtc cmos
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / mutex-debug.h
blob2537285e10641de6ae4a5d51170912860aff03e2
1 #ifndef __LINUX_MUTEX_DEBUG_H
2 #define __LINUX_MUTEX_DEBUG_H
4 #include <linux/linkage.h>
5 #include <linux/lockdep.h>
7 /*
8 * Mutexes - debugging helpers:
9 */
11 #define __DEBUG_MUTEX_INITIALIZER(lockname) \
12 , .magic = &lockname
14 #define mutex_init(mutex) \
15 do { \
16 static struct lock_class_key __key; \
18 __mutex_init((mutex), #mutex, &__key); \
19 } while (0)
21 extern void FASTCALL(mutex_destroy(struct mutex *lock));
23 #endif