]> git.karo-electronics.de Git - karo-tx-linux.git/commit
llist: return whether list is empty before adding in llist_add
authorHuang Ying <ying.huang@intel.com>
Wed, 28 Sep 2011 00:50:48 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:41 +0000 (14:53 +1000)
commit34670f4c5b7ed31fda201a0aca35c5cbcea67ffd
tree5bf5aaf2eba2473315fc46cbb6adf341737fa584
parent3b713e879c33497e2357ffe6ef28e9752d65eced
llist: return whether list is empty before adding in llist_add

This is needed by irq_work.  And because list_add_xxx functions are
inline, this can be optimized out if not needed by callers.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <>
include/linux/llist.h