]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - kernel/signal.c
tracing: add "power-tracer": C/P state tracer to help power optimization
[mv-sheeva.git] / kernel / signal.c
index 105217da5c82eeed7fef7d7c66cf8ec59c6cc2dc..e9afe63da24b524cbd036692945a8dfe634809d2 100644 (file)
@@ -41,6 +41,8 @@
 
 static struct kmem_cache *sigqueue_cachep;
 
+DEFINE_TRACE(sched_signal_send);
+
 static void __user *sig_handler(struct task_struct *t, int sig)
 {
        return t->sighand->action[sig - 1].sa.sa_handler;
@@ -1144,7 +1146,8 @@ static int kill_something_info(int sig, struct siginfo *info, pid_t pid)
                struct task_struct * p;
 
                for_each_process(p) {
-                       if (p->pid > 1 && !same_thread_group(p, current)) {
+                       if (task_pid_vnr(p) > 1 &&
+                                       !same_thread_group(p, current)) {
                                int err = group_send_sig_info(sig, info, p);
                                ++count;
                                if (err != -EPERM)