[PATCH] [RESEND] cris: remove deprecated IRQF_DISABLED

2013-12-06 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from CRIS
architecture code. It's a NOOP since 2.6.35 and it will be removed
one day.

Comments mentioning IRQF_DISABLED are also updated, knowing
that all interrupts are now "fast interrupts", their handlers
running with interrupts disabled.

Signed-off-by: Michael Opdenacker 
---
 arch/cris/arch-v10/drivers/gpio.c |  4 ++--
 arch/cris/arch-v10/drivers/sync_serial.c  |  4 ++--
 arch/cris/arch-v10/kernel/time.c  |  6 ++
 arch/cris/arch-v32/drivers/mach-a3/gpio.c |  2 +-
 arch/cris/arch-v32/drivers/mach-fs/gpio.c |  4 ++--
 arch/cris/arch-v32/kernel/fasttimer.c |  2 +-
 arch/cris/arch-v32/kernel/irq.c   | 10 +-
 arch/cris/arch-v32/kernel/smp.c   |  2 +-
 arch/cris/arch-v32/kernel/time.c  |  6 ++
 arch/cris/arch-v32/mach-a3/arbiter.c  |  4 ++--
 arch/cris/arch-v32/mach-fs/arbiter.c  |  2 +-
 arch/cris/include/arch-v10/arch/irq.h |  6 +++---
 arch/cris/include/arch-v32/arch/irq.h |  6 +++---
 arch/cris/kernel/irq.c|  3 ---
 14 files changed, 27 insertions(+), 34 deletions(-)

diff --git a/arch/cris/arch-v10/drivers/gpio.c 
b/arch/cris/arch-v10/drivers/gpio.c
index 609d5510410e..f4374bae4fb4 100644
--- a/arch/cris/arch-v10/drivers/gpio.c
+++ b/arch/cris/arch-v10/drivers/gpio.c
@@ -838,13 +838,13 @@ static int __init gpio_init(void)
 * in some tests.
 */
res = request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio poll", gpio_name);
+   IRQF_SHARED, "gpio poll", gpio_name);
if (res) {
printk(KERN_CRIT "err: timer0 irq for gpio\n");
return res;
}
res = request_irq(PA_IRQ_NBR, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio PA", gpio_name);
+   IRQF_SHARED, "gpio PA", gpio_name);
if (res)
printk(KERN_CRIT "err: PA irq for gpio\n");
 
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c 
b/arch/cris/arch-v10/drivers/sync_serial.c
index a1c498d18d31..04d39e0ca55d 100644
--- a/arch/cris/arch-v10/drivers/sync_serial.c
+++ b/arch/cris/arch-v10/drivers/sync_serial.c
@@ -580,7 +580,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
if (port == [0]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
"synchronous serial manual irq",
[0])) {
printk(KERN_CRIT "Can't alloc "
@@ -590,7 +590,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
} else if (port == [1]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
"synchronous serial manual irq",
[1])) {
printk(KERN_CRIT "Can't alloc "
diff --git a/arch/cris/arch-v10/kernel/time.c b/arch/cris/arch-v10/kernel/time.c
index fce7c541d70d..e6a722715a8d 100644
--- a/arch/cris/arch-v10/kernel/time.c
+++ b/arch/cris/arch-v10/kernel/time.c
@@ -178,13 +178,11 @@ timer_interrupt(int irq, void *dev_id)
 return IRQ_HANDLED;
 }
 
-/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
- * it needs to be IRQF_DISABLED to make the jiffies update work properly
- */
+/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain */
 
 static struct irqaction irq2  = {
.handler = timer_interrupt,
-   .flags = IRQF_SHARED | IRQF_DISABLED,
+   .flags = IRQF_SHARED,
.name = "timer",
 };
 
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c 
b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
index 0b86deedacb9..74f9fe80940c 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
@@ -978,7 +978,7 @@ static int __init gpio_init(void)
CRIS_LED_DISK_WRITE(0);
 
int res2 = request_irq(GIO_INTR_VECT, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio", );
+   IRQF_SHARED, "gpio", );
if (res2) {
printk(KERN_ERR "err: irq for gpio\n");
return res2;
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c 
b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
index a2ac0917f1a6..9e54273af0ca 100644
--- a/arch/cris/arch-v32/drivers/mach-fs/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
@@ -964,11 +964,11 @@ gpio_init(void)
   

[PATCH] [RESEND] cris: remove deprecated IRQF_DISABLED

2013-12-06 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from CRIS
architecture code. It's a NOOP since 2.6.35 and it will be removed
one day.

Comments mentioning IRQF_DISABLED are also updated, knowing
that all interrupts are now fast interrupts, their handlers
running with interrupts disabled.

Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com
---
 arch/cris/arch-v10/drivers/gpio.c |  4 ++--
 arch/cris/arch-v10/drivers/sync_serial.c  |  4 ++--
 arch/cris/arch-v10/kernel/time.c  |  6 ++
 arch/cris/arch-v32/drivers/mach-a3/gpio.c |  2 +-
 arch/cris/arch-v32/drivers/mach-fs/gpio.c |  4 ++--
 arch/cris/arch-v32/kernel/fasttimer.c |  2 +-
 arch/cris/arch-v32/kernel/irq.c   | 10 +-
 arch/cris/arch-v32/kernel/smp.c   |  2 +-
 arch/cris/arch-v32/kernel/time.c  |  6 ++
 arch/cris/arch-v32/mach-a3/arbiter.c  |  4 ++--
 arch/cris/arch-v32/mach-fs/arbiter.c  |  2 +-
 arch/cris/include/arch-v10/arch/irq.h |  6 +++---
 arch/cris/include/arch-v32/arch/irq.h |  6 +++---
 arch/cris/kernel/irq.c|  3 ---
 14 files changed, 27 insertions(+), 34 deletions(-)

diff --git a/arch/cris/arch-v10/drivers/gpio.c 
b/arch/cris/arch-v10/drivers/gpio.c
index 609d5510410e..f4374bae4fb4 100644
--- a/arch/cris/arch-v10/drivers/gpio.c
+++ b/arch/cris/arch-v10/drivers/gpio.c
@@ -838,13 +838,13 @@ static int __init gpio_init(void)
 * in some tests.
 */
res = request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio poll, gpio_name);
+   IRQF_SHARED, gpio poll, gpio_name);
if (res) {
printk(KERN_CRIT err: timer0 irq for gpio\n);
return res;
}
res = request_irq(PA_IRQ_NBR, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio PA, gpio_name);
+   IRQF_SHARED, gpio PA, gpio_name);
if (res)
printk(KERN_CRIT err: PA irq for gpio\n);
 
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c 
b/arch/cris/arch-v10/drivers/sync_serial.c
index a1c498d18d31..04d39e0ca55d 100644
--- a/arch/cris/arch-v10/drivers/sync_serial.c
+++ b/arch/cris/arch-v10/drivers/sync_serial.c
@@ -580,7 +580,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
if (port == ports[0]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
synchronous serial manual irq,
ports[0])) {
printk(KERN_CRIT Can't alloc 
@@ -590,7 +590,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
} else if (port == ports[1]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
synchronous serial manual irq,
ports[1])) {
printk(KERN_CRIT Can't alloc 
diff --git a/arch/cris/arch-v10/kernel/time.c b/arch/cris/arch-v10/kernel/time.c
index fce7c541d70d..e6a722715a8d 100644
--- a/arch/cris/arch-v10/kernel/time.c
+++ b/arch/cris/arch-v10/kernel/time.c
@@ -178,13 +178,11 @@ timer_interrupt(int irq, void *dev_id)
 return IRQ_HANDLED;
 }
 
-/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
- * it needs to be IRQF_DISABLED to make the jiffies update work properly
- */
+/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain */
 
 static struct irqaction irq2  = {
.handler = timer_interrupt,
-   .flags = IRQF_SHARED | IRQF_DISABLED,
+   .flags = IRQF_SHARED,
.name = timer,
 };
 
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c 
b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
index 0b86deedacb9..74f9fe80940c 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
@@ -978,7 +978,7 @@ static int __init gpio_init(void)
CRIS_LED_DISK_WRITE(0);
 
int res2 = request_irq(GIO_INTR_VECT, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio, alarmlist);
+   IRQF_SHARED, gpio, alarmlist);
if (res2) {
printk(KERN_ERR err: irq for gpio\n);
return res2;
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c 
b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
index a2ac0917f1a6..9e54273af0ca 100644
--- a/arch/cris/arch-v32/drivers/mach-fs/gpio.c
+++ 

[PATCH][RESEND] cris: remove deprecated IRQF_DISABLED

2013-09-03 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from CRIS
architecture code. It's a NOOP since 2.6.35 and it will be removed
one day.

Comments mentioning IRQF_DISABLED are also updated, knowing
that all interrupts are now "fast interrupts", their handlers
running with interrupts disabled.

Don't hesitate to let me know if you have other ways of
rephrasing the comments!

This is an update for 3.11 of a patch already sent for 3.10

Signed-off-by: Michael Opdenacker 
---
 arch/cris/arch-v10/drivers/gpio.c |  4 ++--
 arch/cris/arch-v10/drivers/sync_serial.c  |  4 ++--
 arch/cris/arch-v10/kernel/time.c  |  6 ++
 arch/cris/arch-v32/drivers/mach-a3/gpio.c |  2 +-
 arch/cris/arch-v32/drivers/mach-fs/gpio.c |  4 ++--
 arch/cris/arch-v32/kernel/fasttimer.c |  2 +-
 arch/cris/arch-v32/kernel/irq.c   | 10 +-
 arch/cris/arch-v32/kernel/smp.c   |  2 +-
 arch/cris/arch-v32/kernel/time.c  |  6 ++
 arch/cris/arch-v32/mach-a3/arbiter.c  |  4 ++--
 arch/cris/arch-v32/mach-fs/arbiter.c  |  2 +-
 arch/cris/include/arch-v10/arch/irq.h |  6 +++---
 arch/cris/include/arch-v32/arch/irq.h |  6 +++---
 arch/cris/kernel/irq.c|  3 ---
 14 files changed, 27 insertions(+), 34 deletions(-)

diff --git a/arch/cris/arch-v10/drivers/gpio.c 
b/arch/cris/arch-v10/drivers/gpio.c
index 609d551..f4374ba 100644
--- a/arch/cris/arch-v10/drivers/gpio.c
+++ b/arch/cris/arch-v10/drivers/gpio.c
@@ -838,13 +838,13 @@ static int __init gpio_init(void)
 * in some tests.
 */
res = request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio poll", gpio_name);
+   IRQF_SHARED, "gpio poll", gpio_name);
if (res) {
printk(KERN_CRIT "err: timer0 irq for gpio\n");
return res;
}
res = request_irq(PA_IRQ_NBR, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio PA", gpio_name);
+   IRQF_SHARED, "gpio PA", gpio_name);
if (res)
printk(KERN_CRIT "err: PA irq for gpio\n");
 
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c 
b/arch/cris/arch-v10/drivers/sync_serial.c
index a1c498d..04d39e0 100644
--- a/arch/cris/arch-v10/drivers/sync_serial.c
+++ b/arch/cris/arch-v10/drivers/sync_serial.c
@@ -580,7 +580,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
if (port == [0]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
"synchronous serial manual irq",
[0])) {
printk(KERN_CRIT "Can't alloc "
@@ -590,7 +590,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
} else if (port == [1]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
"synchronous serial manual irq",
[1])) {
printk(KERN_CRIT "Can't alloc "
diff --git a/arch/cris/arch-v10/kernel/time.c b/arch/cris/arch-v10/kernel/time.c
index fce7c54..e6a7227 100644
--- a/arch/cris/arch-v10/kernel/time.c
+++ b/arch/cris/arch-v10/kernel/time.c
@@ -178,13 +178,11 @@ timer_interrupt(int irq, void *dev_id)
 return IRQ_HANDLED;
 }
 
-/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
- * it needs to be IRQF_DISABLED to make the jiffies update work properly
- */
+/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain */
 
 static struct irqaction irq2  = {
.handler = timer_interrupt,
-   .flags = IRQF_SHARED | IRQF_DISABLED,
+   .flags = IRQF_SHARED,
.name = "timer",
 };
 
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c 
b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
index 0b86dee..74f9fe8 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
@@ -978,7 +978,7 @@ static int __init gpio_init(void)
CRIS_LED_DISK_WRITE(0);
 
int res2 = request_irq(GIO_INTR_VECT, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, "gpio", );
+   IRQF_SHARED, "gpio", );
if (res2) {
printk(KERN_ERR "err: irq for gpio\n");
return res2;
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c 
b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
index a2ac091..9e54273 100644
--- 

[PATCH][RESEND] cris: remove deprecated IRQF_DISABLED

2013-09-03 Thread Michael Opdenacker
This patch proposes to remove the IRQF_DISABLED flag from CRIS
architecture code. It's a NOOP since 2.6.35 and it will be removed
one day.

Comments mentioning IRQF_DISABLED are also updated, knowing
that all interrupts are now fast interrupts, their handlers
running with interrupts disabled.

Don't hesitate to let me know if you have other ways of
rephrasing the comments!

This is an update for 3.11 of a patch already sent for 3.10

Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com
---
 arch/cris/arch-v10/drivers/gpio.c |  4 ++--
 arch/cris/arch-v10/drivers/sync_serial.c  |  4 ++--
 arch/cris/arch-v10/kernel/time.c  |  6 ++
 arch/cris/arch-v32/drivers/mach-a3/gpio.c |  2 +-
 arch/cris/arch-v32/drivers/mach-fs/gpio.c |  4 ++--
 arch/cris/arch-v32/kernel/fasttimer.c |  2 +-
 arch/cris/arch-v32/kernel/irq.c   | 10 +-
 arch/cris/arch-v32/kernel/smp.c   |  2 +-
 arch/cris/arch-v32/kernel/time.c  |  6 ++
 arch/cris/arch-v32/mach-a3/arbiter.c  |  4 ++--
 arch/cris/arch-v32/mach-fs/arbiter.c  |  2 +-
 arch/cris/include/arch-v10/arch/irq.h |  6 +++---
 arch/cris/include/arch-v32/arch/irq.h |  6 +++---
 arch/cris/kernel/irq.c|  3 ---
 14 files changed, 27 insertions(+), 34 deletions(-)

diff --git a/arch/cris/arch-v10/drivers/gpio.c 
b/arch/cris/arch-v10/drivers/gpio.c
index 609d551..f4374ba 100644
--- a/arch/cris/arch-v10/drivers/gpio.c
+++ b/arch/cris/arch-v10/drivers/gpio.c
@@ -838,13 +838,13 @@ static int __init gpio_init(void)
 * in some tests.
 */
res = request_irq(TIMER0_IRQ_NBR, gpio_poll_timer_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio poll, gpio_name);
+   IRQF_SHARED, gpio poll, gpio_name);
if (res) {
printk(KERN_CRIT err: timer0 irq for gpio\n);
return res;
}
res = request_irq(PA_IRQ_NBR, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio PA, gpio_name);
+   IRQF_SHARED, gpio PA, gpio_name);
if (res)
printk(KERN_CRIT err: PA irq for gpio\n);
 
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c 
b/arch/cris/arch-v10/drivers/sync_serial.c
index a1c498d..04d39e0 100644
--- a/arch/cris/arch-v10/drivers/sync_serial.c
+++ b/arch/cris/arch-v10/drivers/sync_serial.c
@@ -580,7 +580,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
if (port == ports[0]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
synchronous serial manual irq,
ports[0])) {
printk(KERN_CRIT Can't alloc 
@@ -590,7 +590,7 @@ static int sync_serial_open(struct inode *inode, struct 
file *file)
} else if (port == ports[1]) {
if (request_irq(8,
manual_interrupt,
-   IRQF_SHARED | IRQF_DISABLED,
+   IRQF_SHARED,
synchronous serial manual irq,
ports[1])) {
printk(KERN_CRIT Can't alloc 
diff --git a/arch/cris/arch-v10/kernel/time.c b/arch/cris/arch-v10/kernel/time.c
index fce7c54..e6a7227 100644
--- a/arch/cris/arch-v10/kernel/time.c
+++ b/arch/cris/arch-v10/kernel/time.c
@@ -178,13 +178,11 @@ timer_interrupt(int irq, void *dev_id)
 return IRQ_HANDLED;
 }
 
-/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain
- * it needs to be IRQF_DISABLED to make the jiffies update work properly
- */
+/* timer is IRQF_SHARED so drivers can add stuff to the timer irq chain */
 
 static struct irqaction irq2  = {
.handler = timer_interrupt,
-   .flags = IRQF_SHARED | IRQF_DISABLED,
+   .flags = IRQF_SHARED,
.name = timer,
 };
 
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c 
b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
index 0b86dee..74f9fe8 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
@@ -978,7 +978,7 @@ static int __init gpio_init(void)
CRIS_LED_DISK_WRITE(0);
 
int res2 = request_irq(GIO_INTR_VECT, gpio_interrupt,
-   IRQF_SHARED | IRQF_DISABLED, gpio, alarmlist);
+   IRQF_SHARED, gpio, alarmlist);
if (res2) {
printk(KERN_ERR err: irq for gpio\n);
return res2;
diff --git a/arch/cris/arch-v32/drivers/mach-fs/gpio.c 
b/arch/cris/arch-v32/drivers/mach-fs/gpio.c
index a2ac091..9e54273