diff options
Diffstat (limited to 'fs/proc/proc_misc.c')
-rw-r--r-- | fs/proc/proc_misc.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index a87802fc9313..9e1d2684ce93 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -198,45 +198,6 @@ static const struct file_operations proc_vmalloc_operations = { | |||
198 | }; | 198 | }; |
199 | #endif | 199 | #endif |
200 | 200 | ||
201 | /* | ||
202 | * /proc/interrupts | ||
203 | */ | ||
204 | static void *int_seq_start(struct seq_file *f, loff_t *pos) | ||
205 | { | ||
206 | return (*pos <= nr_irqs) ? pos : NULL; | ||
207 | } | ||
208 | |||
209 | |||
210 | static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) | ||
211 | { | ||
212 | (*pos)++; | ||
213 | return (*pos <= nr_irqs) ? pos : NULL; | ||
214 | } | ||
215 | |||
216 | static void int_seq_stop(struct seq_file *f, void *v) | ||
217 | { | ||
218 | /* Nothing to do */ | ||
219 | } | ||
220 | |||
221 | static const struct seq_operations int_seq_ops = { | ||
222 | .start = int_seq_start, | ||
223 | .next = int_seq_next, | ||
224 | .stop = int_seq_stop, | ||
225 | .show = show_interrupts | ||
226 | }; | ||
227 | |||
228 | static int interrupts_open(struct inode *inode, struct file *filp) | ||
229 | { | ||
230 | return seq_open(filp, &int_seq_ops); | ||
231 | } | ||
232 | |||
233 | static const struct file_operations proc_interrupts_operations = { | ||
234 | .open = interrupts_open, | ||
235 | .read = seq_read, | ||
236 | .llseek = seq_lseek, | ||
237 | .release = seq_release, | ||
238 | }; | ||
239 | |||
240 | #ifdef CONFIG_PROC_PAGE_MONITOR | 201 | #ifdef CONFIG_PROC_PAGE_MONITOR |
241 | #define KPMSIZE sizeof(u64) | 202 | #define KPMSIZE sizeof(u64) |
242 | #define KPMMASK (KPMSIZE - 1) | 203 | #define KPMMASK (KPMSIZE - 1) |
@@ -375,7 +336,6 @@ void __init proc_misc_init(void) | |||
375 | proc_symlink("mounts", NULL, "self/mounts"); | 336 | proc_symlink("mounts", NULL, "self/mounts"); |
376 | 337 | ||
377 | /* And now for trickier ones */ | 338 | /* And now for trickier ones */ |
378 | proc_create("interrupts", 0, NULL, &proc_interrupts_operations); | ||
379 | #ifdef CONFIG_SLABINFO | 339 | #ifdef CONFIG_SLABINFO |
380 | proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations); | 340 | proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations); |
381 | #ifdef CONFIG_DEBUG_SLAB_LEAK | 341 | #ifdef CONFIG_DEBUG_SLAB_LEAK |