diff options
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 15b10e210a6b..e593b4118578 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c | |||
@@ -823,35 +823,9 @@ static const struct seq_operations sched_debug_sops = { | |||
823 | .show = sched_debug_show, | 823 | .show = sched_debug_show, |
824 | }; | 824 | }; |
825 | 825 | ||
826 | static int sched_debug_release(struct inode *inode, struct file *file) | ||
827 | { | ||
828 | seq_release(inode, file); | ||
829 | |||
830 | return 0; | ||
831 | } | ||
832 | |||
833 | static int sched_debug_open(struct inode *inode, struct file *filp) | ||
834 | { | ||
835 | int ret = 0; | ||
836 | |||
837 | ret = seq_open(filp, &sched_debug_sops); | ||
838 | |||
839 | return ret; | ||
840 | } | ||
841 | |||
842 | static const struct file_operations sched_debug_fops = { | ||
843 | .open = sched_debug_open, | ||
844 | .read = seq_read, | ||
845 | .llseek = seq_lseek, | ||
846 | .release = sched_debug_release, | ||
847 | }; | ||
848 | |||
849 | static int __init init_sched_debug_procfs(void) | 826 | static int __init init_sched_debug_procfs(void) |
850 | { | 827 | { |
851 | struct proc_dir_entry *pe; | 828 | if (!proc_create_seq("sched_debug", 0444, NULL, &sched_debug_sops)) |
852 | |||
853 | pe = proc_create("sched_debug", 0444, NULL, &sched_debug_fops); | ||
854 | if (!pe) | ||
855 | return -ENOMEM; | 829 | return -ENOMEM; |
856 | return 0; | 830 | return 0; |
857 | } | 831 | } |