Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123169
b: refs/heads/master
c: 30742d5
h: refs/heads/master
i:
  123167: 61c7d28
v: v3
  • Loading branch information
Ingo Molnar committed Sep 14, 2008
1 parent 8250df6 commit 2e0800b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 53b9d87f41a3d8838210ad7cdef02d814817ce85
refs/heads/master: 30742d5c2277c325fb0e9d2d817d55a19995fe8f
18 changes: 10 additions & 8 deletions trunk/include/linux/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
# define start_critical_timings() do { } while (0)
#endif

#include <asm/irqflags.h>

#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT

#include <asm/irqflags.h>

#define local_irq_enable() \
do { trace_hardirqs_on(); raw_local_irq_enable(); } while (0)
#define local_irq_disable() \
Expand Down Expand Up @@ -84,20 +84,21 @@
* The local_irq_*() APIs are equal to the raw_local_irq*()
* if !TRACE_IRQFLAGS.
*/
#define local_irq_disable() raw_local_irq_disable()
#define local_irq_enable() raw_local_irq_enable()
#define local_irq_save(flags) \
# define raw_local_irq_disable() local_irq_disable()
# define raw_local_irq_enable() local_irq_enable()
# define raw_local_irq_save(flags) \
do { \
typecheck(unsigned long, flags); \
raw_local_irq_save(flags); \
local_irq_save(flags); \
} while (0)
# define local_irq_restore(flags) \
# define raw_local_irq_restore(flags) \
do { \
typecheck(unsigned long, flags); \
raw_local_irq_restore(flags); \
local_irq_restore(flags); \
} while (0)
#endif /* CONFIG_TRACE_IRQFLAGS_SUPPORT */

#ifdef CONFIG_TRACE_IRQFLAGS_SUPPORT
#define safe_halt() \
do { \
trace_hardirqs_on(); \
Expand All @@ -123,5 +124,6 @@
typecheck(unsigned long, flags); \
raw_irqs_disabled_flags(flags); \
})
#endif /* CONFIG_X86 */

#endif

0 comments on commit 2e0800b

Please sign in to comment.