aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/proc_misc.c')
-rw-r--r--fs/proc/proc_misc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 4a768ed5da2e..5ed15ff8fd1d 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -188,19 +188,11 @@ static struct file_operations proc_kpageflags_operations = {
188}; 188};
189#endif /* CONFIG_PROC_PAGE_MONITOR */ 189#endif /* CONFIG_PROC_PAGE_MONITOR */
190 190
191struct proc_dir_entry *proc_root_kcore;
192
193void __init proc_misc_init(void) 191void __init proc_misc_init(void)
194{ 192{
195 proc_symlink("mounts", NULL, "self/mounts"); 193 proc_symlink("mounts", NULL, "self/mounts");
196 194
197 /* And now for trickier ones */ 195 /* And now for trickier ones */
198#ifdef CONFIG_PROC_KCORE
199 proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &proc_kcore_operations);
200 if (proc_root_kcore)
201 proc_root_kcore->size =
202 (size_t)high_memory - PAGE_OFFSET + PAGE_SIZE;
203#endif
204#ifdef CONFIG_PROC_PAGE_MONITOR 196#ifdef CONFIG_PROC_PAGE_MONITOR
205 proc_create("kpagecount", S_IRUSR, NULL, &proc_kpagecount_operations); 197 proc_create("kpagecount", S_IRUSR, NULL, &proc_kpagecount_operations);
206 proc_create("kpageflags", S_IRUSR, NULL, &proc_kpageflags_operations); 198 proc_create("kpageflags", S_IRUSR, NULL, &proc_kpageflags_operations);