aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/nmi.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-05-31 09:06:51 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-06-13 09:58:21 -0400
commitfd5ada04030cb584251c381cb70daa41e984ae82 (patch)
tree8ac8094637a5322efa36a4408b35434920ccb5d5 /arch/s390/kernel/nmi.c
parent936cc855ffe808b428cf75116fe031af9f12237e (diff)
s390/time: remove ETR support
The External-Time-Reference (ETR) clock synchronization interface has been superseded by Server-Time-Protocol (STP). Remove the outdated ETR interface. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/nmi.c')
-rw-r--r--arch/s390/kernel/nmi.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/s390/kernel/nmi.c b/arch/s390/kernel/nmi.c
index 07302ce37648..29376f0e725c 100644
--- a/arch/s390/kernel/nmi.c
+++ b/arch/s390/kernel/nmi.c
@@ -16,7 +16,7 @@
16#include <linux/module.h> 16#include <linux/module.h>
17#include <asm/lowcore.h> 17#include <asm/lowcore.h>
18#include <asm/smp.h> 18#include <asm/smp.h>
19#include <asm/etr.h> 19#include <asm/stp.h>
20#include <asm/cputime.h> 20#include <asm/cputime.h>
21#include <asm/nmi.h> 21#include <asm/nmi.h>
22#include <asm/crw.h> 22#include <asm/crw.h>
@@ -27,7 +27,6 @@ struct mcck_struct {
27 unsigned int kill_task : 1; 27 unsigned int kill_task : 1;
28 unsigned int channel_report : 1; 28 unsigned int channel_report : 1;
29 unsigned int warning : 1; 29 unsigned int warning : 1;
30 unsigned int etr_queue : 1;
31 unsigned int stp_queue : 1; 30 unsigned int stp_queue : 1;
32 unsigned long mcck_code; 31 unsigned long mcck_code;
33}; 32};
@@ -82,8 +81,6 @@ void s390_handle_mcck(void)
82 if (xchg(&mchchk_wng_posted, 1) == 0) 81 if (xchg(&mchchk_wng_posted, 1) == 0)
83 kill_cad_pid(SIGPWR, 1); 82 kill_cad_pid(SIGPWR, 1);
84 } 83 }
85 if (mcck.etr_queue)
86 etr_queue_work();
87 if (mcck.stp_queue) 84 if (mcck.stp_queue)
88 stp_queue_work(); 85 stp_queue_work();
89 if (mcck.kill_task) { 86 if (mcck.kill_task) {
@@ -241,8 +238,6 @@ static int notrace s390_validate_registers(union mci mci)
241 238
242#define ED_STP_ISLAND 6 /* External damage STP island check */ 239#define ED_STP_ISLAND 6 /* External damage STP island check */
243#define ED_STP_SYNC 7 /* External damage STP sync check */ 240#define ED_STP_SYNC 7 /* External damage STP sync check */
244#define ED_ETR_SYNC 12 /* External damage ETR sync check */
245#define ED_ETR_SWITCH 13 /* External damage ETR switch to local */
246 241
247/* 242/*
248 * machine check handler. 243 * machine check handler.
@@ -325,15 +320,11 @@ void notrace s390_do_machine_check(struct pt_regs *regs)
325 } 320 }
326 if (mci.ed && mci.ec) { 321 if (mci.ed && mci.ec) {
327 /* External damage */ 322 /* External damage */
328 if (S390_lowcore.external_damage_code & (1U << ED_ETR_SYNC))
329 mcck->etr_queue |= etr_sync_check();
330 if (S390_lowcore.external_damage_code & (1U << ED_ETR_SWITCH))
331 mcck->etr_queue |= etr_switch_to_local();
332 if (S390_lowcore.external_damage_code & (1U << ED_STP_SYNC)) 323 if (S390_lowcore.external_damage_code & (1U << ED_STP_SYNC))
333 mcck->stp_queue |= stp_sync_check(); 324 mcck->stp_queue |= stp_sync_check();
334 if (S390_lowcore.external_damage_code & (1U << ED_STP_ISLAND)) 325 if (S390_lowcore.external_damage_code & (1U << ED_STP_ISLAND))
335 mcck->stp_queue |= stp_island_check(); 326 mcck->stp_queue |= stp_island_check();
336 if (mcck->etr_queue || mcck->stp_queue) 327 if (mcck->stp_queue)
337 set_cpu_flag(CIF_MCCK_PENDING); 328 set_cpu_flag(CIF_MCCK_PENDING);
338 } 329 }
339 if (mci.se) 330 if (mci.se)