Blackfin: Rename IRQ flags handling functions
Rename h/w IRQ flags handling functions to be in line with what is expected for the irq renaming patch. This renames local_*_hw() to hard_local_*() using the following perl command: perl -pi -e 's/local_irq_(restore|enable|disable)_hw/hard_local_irq_\1/ or s/local_irq_save_hw([_a-z]*)[(]flags[)]/flags = hard_local_irq_save\1()/' `find arch/blackfin/ -name "*.[ch]"` and then fixing up asm/irqflags.h manually. Additionally, arch/hard_local_save_flags() and arch/hard_local_irq_save() both return the flags rather than passing it through the argument list. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -132,8 +132,8 @@ static void bfin_ack_noop(unsigned int irq)
|
||||
static void bfin_core_mask_irq(unsigned int irq)
|
||||
{
|
||||
bfin_irq_flags &= ~(1 << irq);
|
||||
if (!irqs_disabled_hw())
|
||||
local_irq_enable_hw();
|
||||
if (!hard_irqs_disabled())
|
||||
hard_local_irq_enable();
|
||||
}
|
||||
|
||||
static void bfin_core_unmask_irq(unsigned int irq)
|
||||
@@ -148,8 +148,8 @@ static void bfin_core_unmask_irq(unsigned int irq)
|
||||
* local_irq_enable just does "STI bfin_irq_flags", so it's exactly
|
||||
* what we need.
|
||||
*/
|
||||
if (!irqs_disabled_hw())
|
||||
local_irq_enable_hw();
|
||||
if (!hard_irqs_disabled())
|
||||
hard_local_irq_enable();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -158,12 +158,12 @@ static void bfin_internal_mask_irq(unsigned int irq)
|
||||
unsigned long flags;
|
||||
|
||||
#ifdef CONFIG_BF53x
|
||||
local_irq_save_hw(flags);
|
||||
flags = hard_local_irq_save();
|
||||
bfin_write_SIC_IMASK(bfin_read_SIC_IMASK() &
|
||||
~(1 << SIC_SYSIRQ(irq)));
|
||||
#else
|
||||
unsigned mask_bank, mask_bit;
|
||||
local_irq_save_hw(flags);
|
||||
flags = hard_local_irq_save();
|
||||
mask_bank = SIC_SYSIRQ(irq) / 32;
|
||||
mask_bit = SIC_SYSIRQ(irq) % 32;
|
||||
bfin_write_SIC_IMASK(mask_bank, bfin_read_SIC_IMASK(mask_bank) &
|
||||
@@ -173,7 +173,7 @@ static void bfin_internal_mask_irq(unsigned int irq)
|
||||
~(1 << mask_bit));
|
||||
#endif
|
||||
#endif
|
||||
local_irq_restore_hw(flags);
|
||||
hard_local_irq_restore(flags);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
@@ -186,12 +186,12 @@ static void bfin_internal_unmask_irq(unsigned int irq)
|
||||
unsigned long flags;
|
||||
|
||||
#ifdef CONFIG_BF53x
|
||||
local_irq_save_hw(flags);
|
||||
flags = hard_local_irq_save();
|
||||
bfin_write_SIC_IMASK(bfin_read_SIC_IMASK() |
|
||||
(1 << SIC_SYSIRQ(irq)));
|
||||
#else
|
||||
unsigned mask_bank, mask_bit;
|
||||
local_irq_save_hw(flags);
|
||||
flags = hard_local_irq_save();
|
||||
mask_bank = SIC_SYSIRQ(irq) / 32;
|
||||
mask_bit = SIC_SYSIRQ(irq) % 32;
|
||||
#ifdef CONFIG_SMP
|
||||
@@ -207,7 +207,7 @@ static void bfin_internal_unmask_irq(unsigned int irq)
|
||||
(1 << mask_bit));
|
||||
#endif
|
||||
#endif
|
||||
local_irq_restore_hw(flags);
|
||||
hard_local_irq_restore(flags);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
@@ -264,7 +264,7 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state)
|
||||
break;
|
||||
}
|
||||
|
||||
local_irq_save_hw(flags);
|
||||
flags = hard_local_irq_save();
|
||||
|
||||
if (state) {
|
||||
bfin_sic_iwr[bank] |= (1 << bit);
|
||||
@@ -275,7 +275,7 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state)
|
||||
vr_wakeup &= ~wakeup;
|
||||
}
|
||||
|
||||
local_irq_restore_hw(flags);
|
||||
hard_local_irq_restore(flags);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user