diff options
author | Janosch Frank <frankja@linux.ibm.com> | 2020-04-29 10:35:14 -0400 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2020-04-30 16:52:14 +0200 |
commit | af9d06870cd43092c6f70bfa4d76ae7ace5d329c (patch) | |
tree | df16a0f21b18a9069f2e4acac5294020abda8a28 | |
parent | deb791fde6d2663ba9a48389b9da3ab14dd1fe2f (diff) | |
download | kvm-unit-tests-af9d06870cd43092c6f70bfa4d76ae7ace5d329c.tar.gz |
s390x: smp: Remove unneeded cpu loops
Now that we have a loop which is executed after we return from the
main function of a secondary cpu, we can remove the surplus loops.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200429143518.1360468-7-frankja@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
-rw-r--r-- | s390x/smp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/s390x/smp.c b/s390x/smp.c index 447b998..f2319c4 100644 --- a/s390x/smp.c +++ b/s390x/smp.c @@ -35,15 +35,9 @@ static void set_flag(int val) mb(); } -static void cpu_loop(void) -{ - for (;;) {} -} - static void test_func(void) { set_flag(1); - cpu_loop(); } static void test_start(void) @@ -306,7 +300,7 @@ int main(void) /* Setting up the cpu to give it a stack and lowcore */ psw.mask = extract_psw_mask(); - psw.addr = (unsigned long)cpu_loop; + psw.addr = (unsigned long)test_func; smp_cpu_setup(1, psw); smp_cpu_stop(1); |