[PATCH] cleanup the usage of SEND_SIG_xxx constants
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / sched.h
index 41285a0e7258eb45e164a24bb1055050aa8e35d8..03b68a7b4b82ae7c775a375f1fe3aa0b6a9909ec 100644 (file)
@@ -1084,6 +1084,11 @@ extern int do_sigaltstack(const stack_t __user *, stack_t __user *, unsigned lon
 #define SEND_SIG_PRIV  ((struct siginfo *) 1)
 #define SEND_SIG_FORCED        ((struct siginfo *) 2)
 
+static inline int is_si_special(const struct siginfo *info)
+{
+       return info <= SEND_SIG_FORCED;
+}
+
 /* True if we are on the alternate signal stack.  */
 
 static inline int on_sig_stack(unsigned long sp)