From: Huang Ying Date: Thu, 8 Sep 2011 06:00:45 +0000 (+0800) Subject: llist: Return whether list is empty before adding in llist_add() X-Git-Tag: v3.2-rc1~161^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781f7fd916fc77a862e20063ed3aeedf173234f9;p=pandora-kernel.git 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 Cc: Mathieu Desnoyers Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1315461646-1379-5-git-send-email-ying.huang@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed