]> err.no Git - linux-2.6/blobdiff - kernel/sched_debug.c
module: neaten __find_symbol, rename to find_symbol
[linux-2.6] / kernel / sched_debug.c
index be42548b67bb642e53402b926a57574ef6c528dc..8a9498e7c8311e582f35709c7ffc3019fda2f601 100644 (file)
@@ -119,7 +119,7 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
        struct sched_entity *last;
        unsigned long flags;
 
-#ifndef CONFIG_CGROUP_SCHED
+#if !defined(CONFIG_CGROUP_SCHED) || !defined(CONFIG_USER_SCHED)
        SEQ_printf(m, "\ncfs_rq[%d]:\n", cpu);
 #else
        char path[128] = "";
@@ -277,12 +277,9 @@ static int __init init_sched_debug_procfs(void)
 {
        struct proc_dir_entry *pe;
 
-       pe = create_proc_entry("sched_debug", 0644, NULL);
+       pe = proc_create("sched_debug", 0644, NULL, &sched_debug_fops);
        if (!pe)
                return -ENOMEM;
-
-       pe->proc_fops = &sched_debug_fops;
-
        return 0;
 }