diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2016-01-29 06:17:44 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-01-29 06:21:04 -0500 |
commit | 4d0cb15fccd1db9dac0c964b2ccf10874e69f5b8 (patch) | |
tree | f7275789ab389c1c9491cd259814522f7927f125 | |
parent | b89bd1f4fbaecaa842588a034f8a44f4a84597e4 (diff) |
ARCv2: Check for LL-SC livelock only if LLSC is enabled
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/kernel/setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 7f0a3cb300a8..a7edceba5f84 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c | |||
@@ -339,6 +339,7 @@ static void arc_chk_core_config(void) | |||
339 | panic("FPU non-existent, disable CONFIG_ARC_FPU_SAVE_RESTORE\n"); | 339 | panic("FPU non-existent, disable CONFIG_ARC_FPU_SAVE_RESTORE\n"); |
340 | 340 | ||
341 | if (is_isa_arcv2() && IS_ENABLED(CONFIG_SMP) && cpu->isa.atomic && | 341 | if (is_isa_arcv2() && IS_ENABLED(CONFIG_SMP) && cpu->isa.atomic && |
342 | IS_ENABLED(CONFIG_ARC_HAS_LLSC) && | ||
342 | !IS_ENABLED(CONFIG_ARC_STAR_9000923308)) | 343 | !IS_ENABLED(CONFIG_ARC_STAR_9000923308)) |
343 | panic("llock/scond livelock workaround missing\n"); | 344 | panic("llock/scond livelock workaround missing\n"); |
344 | } | 345 | } |