diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2012-03-23 06:13:05 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-03-23 06:13:24 -0400 |
commit | b03d541aa45b52e1b723890121a9fe3920eb438b (patch) | |
tree | 923c4bc9c618614634b536199ec1e4d1c74cdc83 /arch/s390/include | |
parent | 61d84979ab9826c292812059f99248603da28fba (diff) |
[S390] oprofile: Allow multiple users of the measurement alert interrupt
Prepare the measurement facility which is currently only used by oprofile
for multiple users. To achieve that the measurement alert interrupt control
bit needs to be protected. The measurement alert definitions are moved
to a header file and an interrupt mask is added so that users can discard
interrupts if they are for a different measurement subsystem.
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/cpu_mf.h | 12 | ||||
-rw-r--r-- | arch/s390/include/asm/irq.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/s390/include/asm/cpu_mf.h b/arch/s390/include/asm/cpu_mf.h new file mode 100644 index 000000000000..d91dd38112de --- /dev/null +++ b/arch/s390/include/asm/cpu_mf.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #ifndef _ASM_S390_CPU_MF_H | ||
2 | #define _ASM_S390_CPU_MF_H | ||
3 | |||
4 | #define CPU_MF_INT_SF_MASK 0xffc00000 | ||
5 | |||
6 | #define CPU_MF_INT_SF_IAE (1 << 31) /* invalid entry address */ | ||
7 | #define CPU_MF_INT_SF_ISE (1 << 30) /* incorrect SDBT entry */ | ||
8 | #define CPU_MF_INT_SF_PRA (1 << 29) /* program request alert */ | ||
9 | #define CPU_MF_INT_SF_SACA (1 << 23) /* sampler auth. change alert */ | ||
10 | #define CPU_MF_INT_SF_LSDA (1 << 22) /* loss of sample data alert */ | ||
11 | |||
12 | #endif | ||
diff --git a/arch/s390/include/asm/irq.h b/arch/s390/include/asm/irq.h index acee1806f61e..5289cacd4861 100644 --- a/arch/s390/include/asm/irq.h +++ b/arch/s390/include/asm/irq.h | |||
@@ -45,5 +45,7 @@ int register_external_interrupt(u16 code, ext_int_handler_t handler); | |||
45 | int unregister_external_interrupt(u16 code, ext_int_handler_t handler); | 45 | int unregister_external_interrupt(u16 code, ext_int_handler_t handler); |
46 | void service_subclass_irq_register(void); | 46 | void service_subclass_irq_register(void); |
47 | void service_subclass_irq_unregister(void); | 47 | void service_subclass_irq_unregister(void); |
48 | void measurement_alert_subclass_register(void); | ||
49 | void measurement_alert_subclass_unregister(void); | ||
48 | 50 | ||
49 | #endif /* _ASM_IRQ_H */ | 51 | #endif /* _ASM_IRQ_H */ |