llist: Add llist_next()

So we don't have to expose the struct list_node member.

Cc: Huang Ying <ying.huang@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1315836348.26517.41.camel@twins
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Peter Zijlstra 2011-09-12 13:12:28 +02:00 committed by Ingo Molnar
parent 38aaf8090d
commit 924f8f5af3
2 changed files with 6 additions and 1 deletions

View file

@ -110,7 +110,7 @@ void irq_work_run(void)
while (llnode != NULL) {
work = llist_entry(llnode, struct irq_work, llnode);
llnode = llnode->next;
llnode = llist_next(llnode);
/*
* Clear the PENDING bit, after this point the @work