sched: Turn lock_task_sighand() into a static inline
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 9 Feb 2012 16:45:19 +0000 (20:45 +0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Feb 2012 14:41:33 +0000 (15:41 +0100)
commit9388dc3047a88bedfd867e9ba3e1980c815ac524
tree50f30a41607c270b00c04644e069f165a456310a
parented387b781ea6e14b78f449aa2ee4f270b60b01ac
sched: Turn lock_task_sighand() into a static inline

It appears that sparse tool understands static inline functions
for context balance checking, so let's turn the macros into an
inline func.

This makes the code a little bit more robust.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Arve <arve@android.com>
Cc: San Mehat <san@google.com>
Cc: Colin Cross <ccross@android.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: kernel-team@android.com
Cc: linaro-kernel@lists.linaro.org
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120209164519.GA10266@oksana.dev.rtsoft.ru
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h