mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
powerpc/ps3: Use cpu_relax() in ps3_create_spu()
Use cpu_relax() to wait for the execution status SPE_EX_STATE_EXECUTED. Drop the comments while at it. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260720231153.116827-2-thorsten.blum@linux.dev
This commit is contained in:
committed by
Madhavan Srinivasan
parent
b6cfbfd6b2
commit
6050e3196d
@@ -13,6 +13,7 @@
|
||||
#include <linux/export.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/processor.h>
|
||||
|
||||
#include <asm/spu.h>
|
||||
#include <asm/spu_priv1.h>
|
||||
@@ -363,12 +364,9 @@ static int __init ps3_create_spu(struct spu *spu, void *data)
|
||||
if (result)
|
||||
goto fail_enable;
|
||||
|
||||
/* Make sure the spu is in SPE_EX_STATE_EXECUTED. */
|
||||
|
||||
/* need something better here!!! */
|
||||
while (in_be64(&spu_pdata(spu)->shadow->spe_execution_status)
|
||||
!= SPE_EX_STATE_EXECUTED)
|
||||
(void)0;
|
||||
while (in_be64(&spu_pdata(spu)->shadow->spe_execution_status) !=
|
||||
SPE_EX_STATE_EXECUTED)
|
||||
cpu_relax();
|
||||
|
||||
return result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user