]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
llist: Return whether list is empty before adding in llist_add()
authorHuang Ying <ying.huang@intel.com>
Thu, 8 Sep 2011 06:00:45 +0000 (14:00 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Oct 2011 10:43:44 +0000 (12:43 +0200)
commit781f7fd916fc77a862e20063ed3aeedf173234f9
tree86d6e89060c765cbab65b7c3e77884d3e7c17e70
parenta3127336b71f6833d1483c856dce91fe558dc3a9
llist: Return whether list is empty before adding in llist_add()

Extend the llist_add*() functions to return a success indicator, this
allows us in the scheduler code to send an IPI if the queue was empty.

( There's no effect on existing users, because the list_add_xxx() functions
  are inline, thus this will be optimized out by the compiler if not used
  by callers. )

Signed-off-by: Huang Ying <ying.huang@intel.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1315461646-1379-5-git-send-email-ying.huang@intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/llist.h
lib/llist.c