diff options
author | David Howells <dhowells@redhat.com> | 2010-10-07 09:08:52 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-07 09:08:52 -0400 |
commit | 3b139cdb373282dfa72316aa56887371e97cafe8 (patch) | |
tree | c8755b136c0787011409d6f8116d5493406d0b55 /arch/blackfin/kernel/cplb-mpu | |
parent | 5c74874bc9a838b185fe463153e63f7d895ebb77 (diff) |
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>
Diffstat (limited to 'arch/blackfin/kernel/cplb-mpu')
-rw-r--r-- | arch/blackfin/kernel/cplb-mpu/cplbmgr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/cplb-mpu/cplbmgr.c b/arch/blackfin/kernel/cplb-mpu/cplbmgr.c index 87b25b1b30ed..8de92299b3ee 100644 --- a/arch/blackfin/kernel/cplb-mpu/cplbmgr.c +++ b/arch/blackfin/kernel/cplb-mpu/cplbmgr.c | |||
@@ -318,7 +318,7 @@ void flush_switched_cplbs(unsigned int cpu) | |||
318 | 318 | ||
319 | nr_cplb_flush[cpu]++; | 319 | nr_cplb_flush[cpu]++; |
320 | 320 | ||
321 | local_irq_save_hw(flags); | 321 | flags = hard_local_irq_save(); |
322 | _disable_icplb(); | 322 | _disable_icplb(); |
323 | for (i = first_switched_icplb; i < MAX_CPLBS; i++) { | 323 | for (i = first_switched_icplb; i < MAX_CPLBS; i++) { |
324 | icplb_tbl[cpu][i].data = 0; | 324 | icplb_tbl[cpu][i].data = 0; |
@@ -332,7 +332,7 @@ void flush_switched_cplbs(unsigned int cpu) | |||
332 | bfin_write32(DCPLB_DATA0 + i * 4, 0); | 332 | bfin_write32(DCPLB_DATA0 + i * 4, 0); |
333 | } | 333 | } |
334 | _enable_dcplb(); | 334 | _enable_dcplb(); |
335 | local_irq_restore_hw(flags); | 335 | hard_local_irq_restore(flags); |
336 | 336 | ||
337 | } | 337 | } |
338 | 338 | ||
@@ -348,7 +348,7 @@ void set_mask_dcplbs(unsigned long *masks, unsigned int cpu) | |||
348 | return; | 348 | return; |
349 | } | 349 | } |
350 | 350 | ||
351 | local_irq_save_hw(flags); | 351 | flags = hard_local_irq_save(); |
352 | current_rwx_mask[cpu] = masks; | 352 | current_rwx_mask[cpu] = masks; |
353 | 353 | ||
354 | if (L2_LENGTH && addr >= L2_START && addr < L2_START + L2_LENGTH) { | 354 | if (L2_LENGTH && addr >= L2_START && addr < L2_START + L2_LENGTH) { |
@@ -373,5 +373,5 @@ void set_mask_dcplbs(unsigned long *masks, unsigned int cpu) | |||
373 | addr += PAGE_SIZE; | 373 | addr += PAGE_SIZE; |
374 | } | 374 | } |
375 | _enable_dcplb(); | 375 | _enable_dcplb(); |
376 | local_irq_restore_hw(flags); | 376 | hard_local_irq_restore(flags); |
377 | } | 377 | } |