Skip to content
Snippets Groups Projects
Commit 8f15326a authored by Jonas Gorski's avatar Jonas Gorski
Browse files

kernel: generic: don't strip /proc/irq on SMP


/proc/irq is needed for changing the SMP affinity of interrupts.

Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>

SVN-Revision: 36525
parent a80a4f3e
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir) if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || !desc->dir) if (!root_irq_dir || !desc->dir)
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
unsigned int irq; unsigned int irq;
struct irq_desc *desc; struct irq_desc *desc;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
/* create /proc/irq */ /* create /proc/irq */
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir) if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || !desc->dir) if (!root_irq_dir || !desc->dir)
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
unsigned int irq; unsigned int irq;
struct irq_desc *desc; struct irq_desc *desc;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
/* create /proc/irq */ /* create /proc/irq */
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir) if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || !desc->dir) if (!root_irq_dir || !desc->dir)
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
unsigned int irq; unsigned int irq;
struct irq_desc *desc; struct irq_desc *desc;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
/* create /proc/irq */ /* create /proc/irq */
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir) if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir)
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
{ {
char name [MAX_NAMELEN]; char name [MAX_NAMELEN];
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
if (!root_irq_dir || !desc->dir) if (!root_irq_dir || !desc->dir)
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
unsigned int irq; unsigned int irq;
struct irq_desc *desc; struct irq_desc *desc;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP))
+ return; + return;
+ +
/* create /proc/irq */ /* create /proc/irq */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment