]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dynamic proc cleanups
authorAndrew Morton <akpm@osdl.org>
Thu, 22 Apr 2004 06:36:19 +0000 (23:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 22 Apr 2004 06:36:19 +0000 (23:36 -0700)
From: Matt Mackall <mpm@selenic.com>

Delete obsolete comment and kill test of obsolete define.

arch/alpha/kernel/irq.c
include/linux/proc_fs.h

index 0e317230f81e661d2d1d22d167956f6caab6477a..c51bf8dbfc8a83da193d5dbf0ff3b0144a3ddd8e 100644 (file)
@@ -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);
        }
 }
 
index 0b12bd800fd185f99cbbc07c2fcc01e504604335..2d439a8390c063403a277f7878579f6850d4d1a7 100644 (file)
@@ -24,8 +24,6 @@ enum {
        PROC_ROOT_INO = 1,
 };
 
-/* Finally, the dynamically allocatable proc entries are reserved: */
-
 #define PROC_SUPER_MAGIC 0x9fa0
 
 /*