]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/sched_debug.c
Fix accidental implicit cast in HR-timer conversion
[linux-2.6-omap-h63xx.git] / kernel / sched_debug.c
index bbe6b31c3c560d864285ad696d0e885f0ee3e5d6..5ae17762ec32533dc391a64625198a17a1d67c4f 100644 (file)
@@ -319,7 +319,7 @@ static int __init init_sched_debug_procfs(void)
 {
        struct proc_dir_entry *pe;
 
-       pe = proc_create("sched_debug", 0644, NULL, &sched_debug_fops);
+       pe = proc_create("sched_debug", 0444, NULL, &sched_debug_fops);
        if (!pe)
                return -ENOMEM;
        return 0;
@@ -333,12 +333,10 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
        unsigned long flags;
        int num_threads = 1;
 
-       rcu_read_lock();
        if (lock_task_sighand(p, &flags)) {
                num_threads = atomic_read(&p->signal->count);
                unlock_task_sighand(p, &flags);
        }
-       rcu_read_unlock();
 
        SEQ_printf(m, "%s (%d, #threads: %d)\n", p->comm, p->pid, num_threads);
        SEQ_printf(m,