Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d0cb15f authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARCv2: Check for LL-SC livelock only if LLSC is enabled

parent b89bd1f4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -339,6 +339,7 @@ static void arc_chk_core_config(void)
		panic("FPU non-existent, disable CONFIG_ARC_FPU_SAVE_RESTORE\n");
		panic("FPU non-existent, disable CONFIG_ARC_FPU_SAVE_RESTORE\n");


	if (is_isa_arcv2() && IS_ENABLED(CONFIG_SMP) && cpu->isa.atomic &&
	if (is_isa_arcv2() && IS_ENABLED(CONFIG_SMP) && cpu->isa.atomic &&
	    IS_ENABLED(CONFIG_ARC_HAS_LLSC) &&
	    !IS_ENABLED(CONFIG_ARC_STAR_9000923308))
	    !IS_ENABLED(CONFIG_ARC_STAR_9000923308))
		panic("llock/scond livelock workaround missing\n");
		panic("llock/scond livelock workaround missing\n");
}
}