aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRobert Reif <reif@earthlink.net>2007-09-27 16:15:31 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-14 00:53:11 -0400
commite8dd16129fad13e5b8b05b6a0a02d10d06f30301 (patch)
tree005f972c998e36e2869fb8cf773be087fe0203a4 /arch
parent72be7e542c67a5a134e99ba19d1846498ef8f9d2 (diff)
[SPARC32]: Add irqflags.h to sparc32 and use it from generic code.
Added asm-sparc/irqflags.h and moved irq related code from system.h to it. Renamed local_irq functions to raw_local_irq in irq.c. Modified system.h to include linux/irqflags.h which includes asm/irqflags.h. Added TRACE_IRQFLAGS_SUPPORT to Kconfig.debug. This is the first step in adding IRQ-flags state tracing as outlined in Documentation/irqflags-tracing.txt. These changes should be harmless because they just move things around and rename them. The next step is making the lowlevel entry code modifications which to be honest are beyond my capabilities at this point. Boot tested on an ss20 running an SMP kernel. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/Kconfig.debug4
-rw-r--r--arch/sparc/kernel/irq.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/arch/sparc/Kconfig.debug b/arch/sparc/Kconfig.debug
index 120f6b529348..87dd496f15eb 100644
--- a/arch/sparc/Kconfig.debug
+++ b/arch/sparc/Kconfig.debug
@@ -1,5 +1,9 @@
1menu "Kernel hacking" 1menu "Kernel hacking"
2 2
3config TRACE_IRQFLAGS_SUPPORT
4 bool
5 default y
6
3source "lib/Kconfig.debug" 7source "lib/Kconfig.debug"
4 8
5config DEBUG_STACK_USAGE 9config DEBUG_STACK_USAGE
diff --git a/arch/sparc/kernel/irq.c b/arch/sparc/kernel/irq.c
index b76dc03fc318..722d67d32961 100644
--- a/arch/sparc/kernel/irq.c
+++ b/arch/sparc/kernel/irq.c
@@ -56,7 +56,7 @@
56#define SMP_NOP2 56#define SMP_NOP2
57#define SMP_NOP3 57#define SMP_NOP3
58#endif /* SMP */ 58#endif /* SMP */
59unsigned long __local_irq_save(void) 59unsigned long __raw_local_irq_save(void)
60{ 60{
61 unsigned long retval; 61 unsigned long retval;
62 unsigned long tmp; 62 unsigned long tmp;
@@ -74,7 +74,7 @@ unsigned long __local_irq_save(void)
74 return retval; 74 return retval;
75} 75}
76 76
77void local_irq_enable(void) 77void raw_local_irq_enable(void)
78{ 78{
79 unsigned long tmp; 79 unsigned long tmp;
80 80
@@ -89,7 +89,7 @@ void local_irq_enable(void)
89 : "memory"); 89 : "memory");
90} 90}
91 91
92void local_irq_restore(unsigned long old_psr) 92void raw_local_irq_restore(unsigned long old_psr)
93{ 93{
94 unsigned long tmp; 94 unsigned long tmp;
95 95
@@ -105,9 +105,9 @@ void local_irq_restore(unsigned long old_psr)
105 : "memory"); 105 : "memory");
106} 106}
107 107
108EXPORT_SYMBOL(__local_irq_save); 108EXPORT_SYMBOL(__raw_local_irq_save);
109EXPORT_SYMBOL(local_irq_enable); 109EXPORT_SYMBOL(raw_local_irq_enable);
110EXPORT_SYMBOL(local_irq_restore); 110EXPORT_SYMBOL(raw_local_irq_restore);
111 111
112/* 112/*
113 * Dave Redman (djhr@tadpole.co.uk) 113 * Dave Redman (djhr@tadpole.co.uk)