linux/arch/blackfin/kernel
David Howells df9ee29270 Fix IRQ flag handling naming
Fix the IRQ flag handling naming.  In linux/irqflags.h under one configuration,
it maps:

	local_irq_enable() -> raw_local_irq_enable()
	local_irq_disable() -> raw_local_irq_disable()
	local_irq_save() -> raw_local_irq_save()
	...

and under the other configuration, it maps:

	raw_local_irq_enable() -> local_irq_enable()
	raw_local_irq_disable() -> local_irq_disable()
	raw_local_irq_save() -> local_irq_save()
	...

This is quite confusing.  There should be one set of names expected of the
arch, and this should be wrapped to give another set of names that are expected
by users of this facility.

Change this to have the arch provide:

	flags = arch_local_save_flags()
	flags = arch_local_irq_save()
	arch_local_irq_restore(flags)
	arch_local_irq_disable()
	arch_local_irq_enable()
	arch_irqs_disabled_flags(flags)
	arch_irqs_disabled()
	arch_safe_halt()

Then linux/irqflags.h wraps these to provide:

	raw_local_save_flags(flags)
	raw_local_irq_save(flags)
	raw_local_irq_restore(flags)
	raw_local_irq_disable()
	raw_local_irq_enable()
	raw_irqs_disabled_flags(flags)
	raw_irqs_disabled()
	raw_safe_halt()

with type checking on the flags 'arguments', and then wraps those to provide:

	local_save_flags(flags)
	local_irq_save(flags)
	local_irq_restore(flags)
	local_irq_disable()
	local_irq_enable()
	irqs_disabled_flags(flags)
	irqs_disabled()
	safe_halt()

with tracing included if enabled.

The arch functions can now all be inline functions rather than some of them
having to be macros.

Signed-off-by: David Howells <dhowells@redhat.com> [X86, FRV, MN10300]
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> [Tile]
Signed-off-by: Michal Simek <monstr@monstr.eu> [Microblaze]
Tested-by: Catalin Marinas <catalin.marinas@arm.com> [ARM]
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> [AVR]
Acked-by: Tony Luck <tony.luck@intel.com> [IA-64]
Acked-by: Hirokazu Takata <takata@linux-m32r.org> [M32R]
Acked-by: Greg Ungerer <gerg@uclinux.org> [M68K/M68KNOMMU]
Acked-by: Ralf Baechle <ralf@linux-mips.org> [MIPS]
Acked-by: Kyle McMartin <kyle@mcmartin.ca> [PA-RISC]
Acked-by: Paul Mackerras <paulus@samba.org> [PowerPC]
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> [S390]
Acked-by: Chen Liqin <liqin.chen@sunplusct.com> [Score]
Acked-by: Matt Fleming <matt@console-pimps.org> [SH]
Acked-by: David S. Miller <davem@davemloft.net> [Sparc]
Acked-by: Chris Zankel <chris@zankel.net> [Xtensa]
Reviewed-by: Richard Henderson <rth@twiddle.net> [Alpha]
Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp> [H8300]
Cc: starvik@axis.com [CRIS]
Cc: jesper.nilsson@axis.com [CRIS]
Cc: linux-cris-kernel@axis.com
2010-10-07 14:08:55 +01:00
..
cplb-mpu Blackfin: Rename IRQ flags handling functions 2010-10-07 14:08:52 +01:00
cplb-nompu Blackfin: initial XIP support 2010-03-09 00:30:48 -05:00
.gitignore Blackfin: ignore generated vmlinux.lds 2009-05-27 00:27:03 -04:00
asm-offsets.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
bfin_dma_5xx.c Blackfin: fix DMA/cache bug when resuming from suspend to RAM 2010-08-06 12:55:50 -04:00
bfin_gpio.c Blackfin: Rename IRQ flags handling functions 2010-10-07 14:08:52 +01:00
bfin_ksyms.c Blackfin: move string functions to normal lib/ assembly 2010-05-22 14:19:09 -04:00
cplbinfo.c Blackfin: cplbinfo: drop d_path() hacks 2009-10-07 04:48:04 -04:00
dma-mapping.c Blackfin: dma-mapping: fix thinko in constant optimization 2010-03-09 00:30:46 -05:00
dumpstack.c Blackfin: make hardware trace output a little more useful 2010-05-21 09:40:19 -04:00
early_printk.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
entry.S Blackfin: initial XIP support 2010-03-09 00:30:48 -05:00
exception.c Blackfin: split kernel/traps.c 2010-05-21 09:40:17 -04:00
fixed_code.S Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
flat.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
ftrace-entry.S Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
ftrace.c Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
gptimers.c Blackfin: gptimers: use unsigned timer/group ids 2009-12-15 00:15:30 -05:00
init_task.c Blackfin: fix the section name of init_thread_union 2010-03-09 00:30:48 -05:00
ipipe.c Blackfin: Rename IRQ flags handling functions 2010-10-07 14:08:52 +01:00
irqchip.c genirq: Convert irq_desc.lock to raw_spinlock 2009-12-14 23:55:33 +01:00
kgdb_test.c Blackfin: kgdb_test: clean up code a bit 2009-12-15 00:16:50 -05:00
kgdb.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin 2010-05-24 08:02:58 -07:00
Makefile Blackfin: add support for dynamic ftrace 2010-08-06 12:55:54 -04:00
module.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
nmi.c Blackfin: split watchdog definitions into a dedicated header file 2010-03-09 00:30:50 -05:00
process.c Blackfin: Rename IRQ flags handling functions 2010-10-07 14:08:52 +01:00
pseudodbg.c Blackfin: show the whole accumulator in the pseudo DBG insn 2010-05-22 14:19:06 -04:00
ptrace.c ptrace: unify FDPIC implementations 2010-05-27 09:12:44 -07:00
reboot.c Blackfin arch: bfin_reset->_bfin_reset redirection no longer needed 2009-02-04 16:49:45 +08:00
setup.c Blackfin: BF51x/BF52x: support GPIO Hysteresis/Schmitt Trigger options 2010-08-06 12:55:52 -04:00
shadow_console.c Blackfin: mass clean up of copyright/licensing info 2009-10-07 04:36:26 -04:00
signal.c Blackfin: add support for restart_syscall() 2010-03-09 00:30:51 -05:00
stacktrace.c Blackfin: add preliminary support for STACKTRACE 2009-06-13 07:20:14 -04:00
sys_bfin.c Blackfin: split kernel/traps.c 2010-05-21 09:40:17 -04:00
time-ts.c Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-05-19 17:10:06 -07:00
time.c blackfin: Convert blackfin to use read/update_persistent_clock 2010-03-13 01:14:12 +01:00
trace.c Fix IRQ flag handling naming 2010-10-07 14:08:55 +01:00
traps.c Blackfin: add support for the DBG (debug output) pseudo insn 2010-05-22 14:19:05 -04:00
vmlinux.lds.S Blackfin: use common EXCEPTION_TABLE() in vmlinux.lds 2010-08-06 12:55:45 -04:00