]> err.no Git - linux-2.6/blobdiff - include/linux/lockdep.h
KVM: Add coalesced MMIO support (ia64 part)
[linux-2.6] / include / linux / lockdep.h
index 9dc46db2985e9245560223d408f9b03a05eb55b8..2486eb4edbf146b77effbfe27c14689ea70db1de 100644 (file)
@@ -182,6 +182,9 @@ struct lock_list {
  * We record lock dependency chains, so that we can cache them:
  */
 struct lock_chain {
+       u8                              irq_context;
+       u8                              depth;
+       u16                             base;
        struct list_head                entry;
        u64                             chain_key;
 };
@@ -252,6 +255,13 @@ extern void lockdep_on(void);
 extern void lockdep_init_map(struct lockdep_map *lock, const char *name,
                             struct lock_class_key *key, int subclass);
 
+/*
+ * To initialize a lockdep_map statically use this macro.
+ * Note that _name must not be NULL.
+ */
+#define STATIC_LOCKDEP_MAP_INIT(_name, _key) \
+       { .name = (_name), .key = (void *)(_key), }
+
 /*
  * Reinitialize a lock key - for cases where there is special locking or
  * special initialization of locks so that the validator gets the scope