Skip to content

Commit

Permalink
irq/work: Don't reinvent the wheel but use existing llist API
Browse files Browse the repository at this point in the history
Use the proper llist APIs instead of open-coded variants of them.

Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1509414414-14987-1-git-send-email-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
lgebyungchulpark authored and Ingo Molnar committed Oct 31, 2017
1 parent 250a53d commit 16c0890
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kernel/irq_work.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,7 @@ static void irq_work_run_list(struct llist_head *list)
return;

llnode = llist_del_all(list);
while (llnode != NULL) {
work = llist_entry(llnode, struct irq_work, llnode);

llnode = llist_next(llnode);

llist_for_each_entry(work, llnode, llnode) {
/*
* Clear the PENDING bit, after this point the @work
* can be re-used.
Expand Down

0 comments on commit 16c0890

Please sign in to comment.