Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/irq: use CR0 defines to define CR0_IRQ_SUBCLASS_MASK

Use existing CR0 defines to define CR0_IRQ_SUBCLASS_MASK instead of
open-coding the defines again.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
da290f43 4f4cee96

+12 -11
+12 -11
arch/s390/include/asm/irq.h
··· 31 31 #include <linux/percpu.h> 32 32 #include <linux/cache.h> 33 33 #include <linux/types.h> 34 + #include <asm/ctlreg.h> 34 35 35 36 enum interruption_class { 36 37 IRQEXT_CLK, ··· 102 101 }; 103 102 104 103 #define CR0_IRQ_SUBCLASS_MASK \ 105 - ((1UL << (63 - 30)) /* Warning Track */ | \ 106 - (1UL << (63 - 48)) /* Malfunction Alert */ | \ 107 - (1UL << (63 - 49)) /* Emergency Signal */ | \ 108 - (1UL << (63 - 50)) /* External Call */ | \ 109 - (1UL << (63 - 52)) /* Clock Comparator */ | \ 110 - (1UL << (63 - 53)) /* CPU Timer */ | \ 111 - (1UL << (63 - 54)) /* Service Signal */ | \ 112 - (1UL << (63 - 57)) /* Interrupt Key */ | \ 113 - (1UL << (63 - 58)) /* Measurement Alert */ | \ 114 - (1UL << (63 - 59)) /* Timing Alert */ | \ 115 - (1UL << (63 - 62))) /* IUCV */ 104 + (CR0_WARNING_TRACK | \ 105 + CR0_MALFUNCTION_ALERT_SUBMASK | \ 106 + CR0_EMERGENCY_SIGNAL_SUBMASK | \ 107 + CR0_EXTERNAL_CALL_SUBMASK | \ 108 + CR0_CLOCK_COMPARATOR_SUBMASK | \ 109 + CR0_CPU_TIMER_SUBMASK | \ 110 + CR0_SERVICE_SIGNAL_SUBMASK | \ 111 + CR0_INTERRUPT_KEY_SUBMASK | \ 112 + CR0_MEASUREMENT_ALERT_SUBMASK | \ 113 + CR0_ETR_SUBMASK | \ 114 + CR0_IUCV) 116 115 117 116 void irq_subclass_register(enum irq_subclass subclass); 118 117 void irq_subclass_unregister(enum irq_subclass subclass);