Commit e5c7f247 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dynamic proc cleanups

From: Matt Mackall <mpm@selenic.com>

Delete obsolete comment and kill test of obsolete define.
parent 507662e1
......@@ -415,16 +415,12 @@ init_irq_proc (void)
#endif
/*
* Create entries for all existing IRQs. If the number of IRQs
* is greater the 1/4 the total dynamic inode space for /proc,
* don't pollute the inode space
* Create entries for all existing IRQs.
*/
if (ACTUAL_NR_IRQS < (PROC_NDYNAMIC / 4)) {
for (i = 0; i < ACTUAL_NR_IRQS; i++) {
if (irq_desc[i].handler == &no_irq_type)
continue;
register_irq_proc(i);
}
for (i = 0; i < ACTUAL_NR_IRQS; i++) {
if (irq_desc[i].handler == &no_irq_type)
continue;
register_irq_proc(i);
}
}
......
......@@ -24,8 +24,6 @@ enum {
PROC_ROOT_INO = 1,
};
/* Finally, the dynamically allocatable proc entries are reserved: */
#define PROC_SUPER_MAGIC 0x9fa0
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment