Skip to content

Commit

Permalink
[S390] pfault: always enable service signal interrupt
Browse files Browse the repository at this point in the history
Always enable the service signal subclass mask bit in cr0, if pfault
is available. That way we use the normal cpu hotplug way to propagate
the subclass mask bit in cr0 instead of open coding it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens committed May 26, 2011
1 parent 4db70f7 commit 902050b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/s390/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ int pfault_init(void)
"2:\n"
EX_TABLE(0b,1b)
: "=d" (rc) : "a" (&refbk), "m" (refbk) : "cc");
__ctl_set_bit(0, 9);
return rc;
}

Expand All @@ -500,7 +499,6 @@ void pfault_fini(void)

if (!MACHINE_IS_VM || pfault_disable)
return;
__ctl_clear_bit(0,9);
asm volatile(
" diag %0,0,0x258\n"
"0:\n"
Expand Down Expand Up @@ -615,6 +613,7 @@ static int __init pfault_irq_init(void)
rc = pfault_init() == 0 ? 0 : -EOPNOTSUPP;
if (rc)
goto out_pfault;
ctl_set_bit(0, 9);
hotcpu_notifier(pfault_cpu_notify, 0);
return 0;

Expand Down

0 comments on commit 902050b

Please sign in to comment.