Skip to content
Snippets Groups Projects
Commit a50f185b authored by David Hildenbrand's avatar David Hildenbrand Committed by Claudio Imbrenda
Browse files

s390x: make smp_cpu_setup() return 0 on success


Properly return "0" on success so callers can check if the setup was
successful.

The return value is yet unused, which is why this wasn't noticed so far.

Reviewed-by: Thomas Huth's avatarThomas Huth <thuth@redhat.com>
Reviewed-by: Claudio Imbrenda's avatarClaudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: default avatarJanosch Frank <frankja@linux.ibm.com>
Signed-off-by: David Hildenbrand's avatarDavid Hildenbrand <david@redhat.com>
Message-Id: <20211202123553.96412-2-david@redhat.com>
Signed-off-by: Claudio Imbrenda's avatarClaudio Imbrenda <imbrenda@linux.ibm.com>
parent 47747d46
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,7 @@ int smp_cpu_setup(uint16_t addr, struct psw psw)
/* Wait until the cpu has finished setup and started the provided psw */
while (lc->restart_new_psw.addr != psw.addr)
mb();
rc = 0;
out:
spin_unlock(&lock);
return rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment