-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 31792 b: refs/heads/master c: 1f194a4 h: refs/heads/master v: v3
- Loading branch information
Heiko Carstens
authored and
Linus Torvalds
committed
Jul 3, 2006
1 parent
d850f5c
commit 36aaf38
Showing
10 changed files
with
114 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6375e2b74c620794e1a27a26e4338aec2e41346a | ||
refs/heads/master: 1f194a4c393103ac925001d7e04b05fbb122580d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
menu "Kernel hacking" | ||
|
||
config TRACE_IRQFLAGS_SUPPORT | ||
bool | ||
default y | ||
|
||
source "lib/Kconfig.debug" | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* include/asm-s390/irqflags.h | ||
* | ||
* Copyright (C) IBM Corp. 2006 | ||
* Author(s): Heiko Carstens <heiko.carstens@de.ibm.com> | ||
*/ | ||
|
||
#ifndef __ASM_IRQFLAGS_H | ||
#define __ASM_IRQFLAGS_H | ||
|
||
#ifdef __KERNEL__ | ||
|
||
/* interrupt control.. */ | ||
#define raw_local_irq_enable() ({ \ | ||
unsigned long __dummy; \ | ||
__asm__ __volatile__ ( \ | ||
"stosm 0(%1),0x03" \ | ||
: "=m" (__dummy) : "a" (&__dummy) : "memory" ); \ | ||
}) | ||
|
||
#define raw_local_irq_disable() ({ \ | ||
unsigned long __flags; \ | ||
__asm__ __volatile__ ( \ | ||
"stnsm 0(%1),0xfc" : "=m" (__flags) : "a" (&__flags) ); \ | ||
__flags; \ | ||
}) | ||
|
||
#define raw_local_save_flags(x) \ | ||
__asm__ __volatile__("stosm 0(%1),0" : "=m" (x) : "a" (&x), "m" (x) ) | ||
|
||
#define raw_local_irq_restore(x) \ | ||
__asm__ __volatile__("ssm 0(%0)" : : "a" (&x), "m" (x) : "memory") | ||
|
||
#define raw_irqs_disabled() \ | ||
({ \ | ||
unsigned long flags; \ | ||
local_save_flags(flags); \ | ||
!((flags >> __FLAG_SHIFT) & 3); \ | ||
}) | ||
|
||
static inline int raw_irqs_disabled_flags(unsigned long flags) | ||
{ | ||
return !((flags >> __FLAG_SHIFT) & 3); | ||
} | ||
|
||
/* For spinlocks etc */ | ||
#define raw_local_irq_save(x) ((x) = raw_local_irq_disable()) | ||
|
||
#endif /* __KERNEL__ */ | ||
#endif /* __ASM_IRQFLAGS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters