aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/oprofile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-04 07:35:45 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-04 11:19:13 -0400
commit82003c3e606905ca20c78a0ceca9f412e6f71474 (patch)
tree846dc04eec40aaa7e25915cb8131ed52da97e334 /arch/s390/oprofile
parent50ce749d0d107aaed8c2d702b987529f978a40f7 (diff)
s390/irq: rework irq subclass handling
Let's not add a function for every external interrupt subclass for which we need reference counting. Just have two register/unregister functions which have a subclass parameter: void irq_subclass_register(enum irq_subclass subclass); void irq_subclass_unregister(enum irq_subclass subclass); Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/oprofile')
-rw-r--r--arch/s390/oprofile/hwsampler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/oprofile/hwsampler.c b/arch/s390/oprofile/hwsampler.c
index b5b2916895e0..231cecafc2f1 100644
--- a/arch/s390/oprofile/hwsampler.c
+++ b/arch/s390/oprofile/hwsampler.c
@@ -1001,7 +1001,7 @@ int hwsampler_deallocate(void)
1001 if (hws_state != HWS_STOPPED) 1001 if (hws_state != HWS_STOPPED)
1002 goto deallocate_exit; 1002 goto deallocate_exit;
1003 1003
1004 measurement_alert_subclass_unregister(); 1004 irq_subclass_unregister(IRQ_SUBCLASS_MEASUREMENT_ALERT);
1005 deallocate_sdbt(); 1005 deallocate_sdbt();
1006 1006
1007 hws_state = HWS_DEALLOCATED; 1007 hws_state = HWS_DEALLOCATED;
@@ -1115,7 +1115,7 @@ int hwsampler_shutdown(void)
1115 mutex_lock(&hws_sem); 1115 mutex_lock(&hws_sem);
1116 1116
1117 if (hws_state == HWS_STOPPED) { 1117 if (hws_state == HWS_STOPPED) {
1118 measurement_alert_subclass_unregister(); 1118 irq_subclass_unregister(IRQ_SUBCLASS_MEASUREMENT_ALERT);
1119 deallocate_sdbt(); 1119 deallocate_sdbt();
1120 } 1120 }
1121 if (hws_wq) { 1121 if (hws_wq) {
@@ -1190,7 +1190,7 @@ start_all_exit:
1190 hws_oom = 1; 1190 hws_oom = 1;
1191 hws_flush_all = 0; 1191 hws_flush_all = 0;
1192 /* now let them in, 1407 CPUMF external interrupts */ 1192 /* now let them in, 1407 CPUMF external interrupts */
1193 measurement_alert_subclass_register(); 1193 irq_subclass_register(IRQ_SUBCLASS_MEASUREMENT_ALERT);
1194 1194
1195 return 0; 1195 return 0;
1196} 1196}