diff options
author | Dima Zavin <dima@android.com> | 2011-07-07 20:27:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-07-08 08:02:53 -0400 |
commit | 732375c6a5a4cc825b676c922d547aba96b8ce15 (patch) | |
tree | 35002255d0e52ad478ffa7134b73c35452c502a0 /lib/plist.c | |
parent | 8edbb83e5bc3c7d5d76861fc61872105288d2610 (diff) |
plist: Remove the need to supply locks to plist heads
This was legacy code brought over from the RT tree and
is no longer necessary.
Signed-off-by: Dima Zavin <dima@android.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Daniel Walker <dwalker@codeaurora.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Link: http://lkml.kernel.org/r/1310084879-10351-2-git-send-email-dima@android.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/plist.c')
-rw-r--r-- | lib/plist.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/plist.c b/lib/plist.c index 0ae7e6431726..a0a4da489c22 100644 --- a/lib/plist.c +++ b/lib/plist.c | |||
@@ -56,11 +56,6 @@ static void plist_check_list(struct list_head *top) | |||
56 | 56 | ||
57 | static void plist_check_head(struct plist_head *head) | 57 | static void plist_check_head(struct plist_head *head) |
58 | { | 58 | { |
59 | WARN_ON(head != &test_head && !head->rawlock && !head->spinlock); | ||
60 | if (head->rawlock) | ||
61 | WARN_ON_SMP(!raw_spin_is_locked(head->rawlock)); | ||
62 | if (head->spinlock) | ||
63 | WARN_ON_SMP(!spin_is_locked(head->spinlock)); | ||
64 | if (!plist_head_empty(head)) | 59 | if (!plist_head_empty(head)) |
65 | plist_check_list(&plist_first(head)->prio_list); | 60 | plist_check_list(&plist_first(head)->prio_list); |
66 | plist_check_list(&head->node_list); | 61 | plist_check_list(&head->node_list); |
@@ -180,7 +175,7 @@ static int __init plist_test(void) | |||
180 | unsigned int r = local_clock(); | 175 | unsigned int r = local_clock(); |
181 | 176 | ||
182 | printk(KERN_INFO "start plist test\n"); | 177 | printk(KERN_INFO "start plist test\n"); |
183 | plist_head_init(&test_head, NULL); | 178 | plist_head_init(&test_head); |
184 | for (i = 0; i < ARRAY_SIZE(test_node); i++) | 179 | for (i = 0; i < ARRAY_SIZE(test_node); i++) |
185 | plist_node_init(test_node + i, 0); | 180 | plist_node_init(test_node + i, 0); |
186 | 181 | ||