kernel: generic: don't strip /proc/irq on SMP
[openwrt/staging/lynxis.git] / target / linux / generic / patches-3.8 / 902-debloat_proc.patch
index 2489164189c3923973858545dfa832f9eec5391d..ba58ce3177052b233ff6c71a4c7967e29c696be8 100644 (file)
@@ -83,7 +83,7 @@
  {
        char name [MAX_NAMELEN];
  
-+      if (IS_ENABLED(CONFIG_PROC_STRIPPED))
++      if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
 +              return;
 +
        if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
@@ -93,7 +93,7 @@
  {
        char name [MAX_NAMELEN];
  
-+      if (IS_ENABLED(CONFIG_PROC_STRIPPED))
++      if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
 +              return;
 +
        if (!root_irq_dir || !desc->dir)
        unsigned int irq;
        struct irq_desc *desc;
  
-+      if (IS_ENABLED(CONFIG_PROC_STRIPPED))
++      if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
 +              return;
 +
        /* create /proc/irq */