Skip to content

Commit

Permalink
[S390] Load disabled wait psw instead of stopping cpu on halt.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Michael Holzheu authored and Martin Schwidefsky committed Jan 26, 2008
1 parent 99ca4e5 commit c654749
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/s390/kernel/ipl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1096,8 +1096,12 @@ static struct shutdown_action vmcmd_action = {SHUTDOWN_ACTION_VMCMD_STR,

static void stop_run(struct shutdown_trigger *trigger)
{
signal_processor(smp_processor_id(), sigp_stop_and_store_status);
for (;;);
if (strcmp(trigger->name, ON_PANIC_STR) == 0)
disabled_wait((unsigned long) __builtin_return_address(0));
else {
signal_processor(smp_processor_id(), sigp_stop);
for (;;);
}
}

static struct shutdown_action stop_action = {SHUTDOWN_ACTION_STOP_STR,
Expand Down

0 comments on commit c654749

Please sign in to comment.