Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] pfault: always enable service signal interrupt

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>

+1 -2
+1 -2
arch/s390/mm/fault.c
··· 485 485 "2:\n" 486 486 EX_TABLE(0b,1b) 487 487 : "=d" (rc) : "a" (&refbk), "m" (refbk) : "cc"); 488 - __ctl_set_bit(0, 9); 489 488 return rc; 490 489 } 491 490 ··· 499 500 500 501 if (!MACHINE_IS_VM || pfault_disable) 501 502 return; 502 - __ctl_clear_bit(0,9); 503 503 asm volatile( 504 504 " diag %0,0,0x258\n" 505 505 "0:\n" ··· 613 615 rc = pfault_init() == 0 ? 0 : -EOPNOTSUPP; 614 616 if (rc) 615 617 goto out_pfault; 618 + ctl_set_bit(0, 9); 616 619 hotcpu_notifier(pfault_cpu_notify, 0); 617 620 return 0; 618 621