diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-29 19:29:34 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-02-25 13:32:49 -0500 |
commit | b92f541494b4259dd030818e4f18ee5e34c29071 (patch) | |
tree | d876c8c6448327e2f40f7f70e9a54c5f96231dd5 /include | |
parent | aa41766058f8c781a26f69314bcf3f53e957d01e (diff) |
plist-remove-spinlock-types-dependency.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/plist.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/plist.h b/include/linux/plist.h index c9b9f322c8d8..66ba13c2857f 100644 --- a/include/linux/plist.h +++ b/include/linux/plist.h @@ -77,13 +77,15 @@ #include <linux/kernel.h> #include <linux/list.h> -#include <linux/spinlock_types.h> + +struct raw_spinlock; +struct spinlock; struct plist_head { struct list_head node_list; #ifdef CONFIG_DEBUG_PI_LIST - raw_spinlock_t *rawlock; - spinlock_t *spinlock; + struct raw_spinlock *rawlock; + struct spinlock *spinlock; #endif }; @@ -144,7 +146,7 @@ struct plist_node { * @lock: spinlock protecting the list (debugging) */ static inline void -plist_head_init(struct plist_head *head, spinlock_t *lock) +plist_head_init(struct plist_head *head, struct spinlock *lock) { INIT_LIST_HEAD(&head->node_list); #ifdef CONFIG_DEBUG_PI_LIST @@ -159,7 +161,7 @@ plist_head_init(struct plist_head *head, spinlock_t *lock) * @lock: raw_spinlock protecting the list (debugging) */ static inline void -plist_head_init_raw(struct plist_head *head, raw_spinlock_t *lock) +plist_head_init_raw(struct plist_head *head, struct raw_spinlock *lock) { INIT_LIST_HEAD(&head->node_list); #ifdef CONFIG_DEBUG_PI_LIST |