s390x: use the new PSW and PSW_WITH_CUR_MASK macros
Use the new macros in the existing code. No functional changes intended.
Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20221130154038.70492-3-imbrenda@linux.ibm.com
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20221130154038.70492-3-imbrenda@linux.ibm.com>
diff --git a/s390x/skrf.c b/s390x/skrf.c
index 4cb563c..e72a2b1 100644
--- a/s390x/skrf.c
+++ b/s390x/skrf.c
@@ -151,11 +151,6 @@
static void test_exception_ext_new(void)
{
- struct psw psw = {
- .mask = extract_psw_mask(),
- .addr = (unsigned long)ecall_setup
- };
-
report_prefix_push("exception external new");
if (smp_query_num_cpus() < 2) {
report_skip("Need second cpu for exception external new test.");
@@ -163,7 +158,7 @@
return;
}
- smp_cpu_setup(1, psw);
+ smp_cpu_setup(1, PSW_WITH_CUR_MASK(ecall_setup));
wait_for_flag();
set_flag(0);