diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-08-07 04:55:03 -0400 |
commit | 4fb8af10d0fd09372d52966b76922b9e82bbc950 (patch) | |
tree | d240e4d40357583e3f3eb228dccf20122a5b31ed /arch/powerpc/include/asm/irqflags.h | |
parent | f44f82e8a20b98558486eb14497b2f71c78fa325 (diff) | |
parent | 64a99d2a8c3ed5c4e39f3ae1cc682aa8fd3977fc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
Diffstat (limited to 'arch/powerpc/include/asm/irqflags.h')
-rw-r--r-- | arch/powerpc/include/asm/irqflags.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/irqflags.h b/arch/powerpc/include/asm/irqflags.h new file mode 100644 index 000000000000..17ba3a881bfd --- /dev/null +++ b/arch/powerpc/include/asm/irqflags.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * IRQ flags handling | ||
3 | */ | ||
4 | #ifndef _ASM_IRQFLAGS_H | ||
5 | #define _ASM_IRQFLAGS_H | ||
6 | |||
7 | #ifndef __ASSEMBLY__ | ||
8 | /* | ||
9 | * Get definitions for raw_local_save_flags(x), etc. | ||
10 | */ | ||
11 | #include <asm/hw_irq.h> | ||
12 | |||
13 | #else | ||
14 | #ifdef CONFIG_TRACE_IRQFLAGS | ||
15 | /* | ||
16 | * Most of the CPU's IRQ-state tracing is done from assembly code; we | ||
17 | * have to call a C function so call a wrapper that saves all the | ||
18 | * C-clobbered registers. | ||
19 | */ | ||
20 | #define TRACE_ENABLE_INTS bl .trace_hardirqs_on | ||
21 | #define TRACE_DISABLE_INTS bl .trace_hardirqs_off | ||
22 | #define TRACE_AND_RESTORE_IRQ_PARTIAL(en,skip) \ | ||
23 | cmpdi en, 0; \ | ||
24 | bne 95f; \ | ||
25 | stb en,PACASOFTIRQEN(r13); \ | ||
26 | bl .trace_hardirqs_off; \ | ||
27 | b skip; \ | ||
28 | 95: bl .trace_hardirqs_on; \ | ||
29 | li en,1; | ||
30 | #define TRACE_AND_RESTORE_IRQ(en) \ | ||
31 | TRACE_AND_RESTORE_IRQ_PARTIAL(en,96f); \ | ||
32 | 96: stb en,PACASOFTIRQEN(r13) | ||
33 | #else | ||
34 | #define TRACE_ENABLE_INTS | ||
35 | #define TRACE_DISABLE_INTS | ||
36 | #define TRACE_AND_RESTORE_IRQ_PARTIAL(en,skip) | ||
37 | #define TRACE_AND_RESTORE_IRQ(en) \ | ||
38 | stb en,PACASOFTIRQEN(r13) | ||
39 | #endif | ||
40 | #endif | ||
41 | |||
42 | #endif | ||