Commit 98b79980 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[S390] sclp: use register_external_interrupt()

Use register_external_interrupt() instead of register_early_external_interrupt().
The early variant is not necessary since kmalloc works already.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent fb0a9d7e
...@@ -27,9 +27,6 @@ ...@@ -27,9 +27,6 @@
#define SCLP_HEADER "sclp: " #define SCLP_HEADER "sclp: "
/* Structure for register_early_external_interrupt. */
static ext_int_info_t ext_int_info_hwc;
/* Lock to protect internal data consistency. */ /* Lock to protect internal data consistency. */
static DEFINE_SPINLOCK(sclp_lock); static DEFINE_SPINLOCK(sclp_lock);
...@@ -870,8 +867,7 @@ sclp_check_interface(void) ...@@ -870,8 +867,7 @@ sclp_check_interface(void)
spin_lock_irqsave(&sclp_lock, flags); spin_lock_irqsave(&sclp_lock, flags);
/* Prepare init mask command */ /* Prepare init mask command */
rc = register_early_external_interrupt(0x2401, sclp_check_handler, rc = register_external_interrupt(0x2401, sclp_check_handler);
&ext_int_info_hwc);
if (rc) { if (rc) {
spin_unlock_irqrestore(&sclp_lock, flags); spin_unlock_irqrestore(&sclp_lock, flags);
return rc; return rc;
...@@ -904,8 +900,7 @@ sclp_check_interface(void) ...@@ -904,8 +900,7 @@ sclp_check_interface(void)
} else } else
rc = -EBUSY; rc = -EBUSY;
} }
unregister_early_external_interrupt(0x2401, sclp_check_handler, unregister_external_interrupt(0x2401, sclp_check_handler);
&ext_int_info_hwc);
spin_unlock_irqrestore(&sclp_lock, flags); spin_unlock_irqrestore(&sclp_lock, flags);
return rc; return rc;
} }
...@@ -1068,8 +1063,7 @@ sclp_init(void) ...@@ -1068,8 +1063,7 @@ sclp_init(void)
if (rc) if (rc)
goto fail_init_state_uninitialized; goto fail_init_state_uninitialized;
/* Register interrupt handler */ /* Register interrupt handler */
rc = register_early_external_interrupt(0x2401, sclp_interrupt_handler, rc = register_external_interrupt(0x2401, sclp_interrupt_handler);
&ext_int_info_hwc);
if (rc) if (rc)
goto fail_unregister_reboot_notifier; goto fail_unregister_reboot_notifier;
sclp_init_state = sclp_init_state_initialized; sclp_init_state = sclp_init_state_initialized;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment