aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/irqflags.h
blob: 7970cbaeaa5457a257a126b88dae3da829e4fe60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * include/asm-powerpc/irqflags.h
 *
 * IRQ flags handling
 *
 * This file gets included from lowlevel asm headers too, to provide
 * wrapped versions of the local_irq_*() APIs, based on the
 * raw_local_irq_*() macros from the lowlevel headers.
 */
#ifndef _ASM_IRQFLAGS_H
#define _ASM_IRQFLAGS_H

/*
 * Get definitions for raw_local_save_flags(x), etc.
 */
#include <asm-powerpc/hw_irq.h>

/*
 * Do the CPU's IRQ-state tracing from assembly code. We call a
 * C function, so save all the C-clobbered registers:
 */
#ifdef CONFIG_TRACE_IRQFLAGS

#error No support on PowerPC yet for CONFIG_TRACE_IRQFLAGS

#else
# define TRACE_IRQS_ON
# define TRACE_IRQS_OFF
#endif

#endif