]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/proc/base.c
proc: get_nr_threads() doesn't need ->siglock any longer
[mv-sheeva.git] / fs / proc / base.c
index c7f9f23449dc402a16ff1b36eb817fe63f02a779..c384e8b84dffea78a450b416533a60b192620541 100644 (file)
@@ -166,18 +166,6 @@ static int get_fs_path(struct task_struct *task, struct path *path, bool root)
        return result;
 }
 
-static int get_nr_threads(struct task_struct *tsk)
-{
-       unsigned long flags;
-       int count = 0;
-
-       if (lock_task_sighand(tsk, &flags)) {
-               count = atomic_read(&tsk->signal->count);
-               unlock_task_sighand(tsk, &flags);
-       }
-       return count;
-}
-
 static int proc_cwd_link(struct inode *inode, struct path *path)
 {
        struct task_struct *task = get_proc_task(inode);