1
0
Fork 0
alistair23-linux/arch/s390
Martin Schwidefsky 98587c2d89 s390: simplify disabled_wait
The disabled_wait() function uses its argument as the PSW address when
it stops the CPU with a wait PSW that is disabled for interrupts.
The different callers sometimes use a specific number like 0xdeadbeef
to indicate a specific failure, the early boot code uses 0 and some
other calls sites use __builtin_return_address(0).

At the time a dump is created the current PSW and the registers of a
CPU are written to lowcore to make them avaiable to the dump analysis
tool. For a CPU stopped with disabled_wait the PSW and the registers
do not really make sense together, the PSW address does not point to
the function the registers belong to.

Simplify disabled_wait() by using _THIS_IP_ for the PSW address and
drop the argument to the function.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2019-05-02 13:54:11 +02:00
..
appldata sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD 2018-10-26 16:26:32 -07:00
boot s390: simplify disabled_wait 2019-05-02 13:54:11 +02:00
configs s390/kexec_file: Signature verification prototype 2019-04-29 10:44:01 +02:00
crypto s390: add missing ENDPROC statements to assembler functions 2019-05-02 13:54:11 +02:00
hypfs s390/kernel: introduce .dma sections 2019-04-29 10:47:10 +02:00
include s390: simplify disabled_wait 2019-05-02 13:54:11 +02:00
kernel s390: simplify disabled_wait 2019-05-02 13:54:11 +02:00
kvm s390/airq: recognize directed interrupts 2019-04-29 10:47:01 +02:00
lib s390: add missing ENDPROC statements to assembler functions 2019-05-02 13:54:11 +02:00
mm s390/unwind: introduce stack unwind API 2019-05-02 13:54:11 +02:00
net s390: Convert IS_ENABLED uses to __is_defined 2019-04-11 13:36:53 +02:00
numa treewide: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:02 -07:00
oprofile s390/unwind: introduce stack unwind API 2019-05-02 13:54:11 +02:00
pci s390/pci: add parameter to disable usage of MIO instructions 2019-04-29 10:47:01 +02:00
purgatory s390/purgatory: Omit use of bin2c 2019-04-29 10:43:55 +02:00
scripts s390: make chkbss work with clang 2019-04-11 13:36:52 +02:00
tools s390/opcodes: add missing instructions to the disassembler 2019-05-02 13:54:11 +02:00
Kbuild s390/kexec_file: Add purgatory 2018-04-16 09:10:22 +02:00
Kconfig s390/kernel: add support for kernel address space layout randomization (KASLR) 2019-04-29 10:47:10 +02:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile s390/kernel: build a relocatable kernel 2019-04-29 10:47:10 +02:00
defconfig s390/kexec_file: Signature verification prototype 2019-04-29 10:44:01 +02:00