Skip to content

Commit f345660

Browse files
Gao ChenWenlp
authored andcommitted
sw64: fix the condition for enabling hw_una_enabled
The hw_una_enabled should be enabled by checking hmcode feature. Signed-off-by: Gao Chen <[email protected]> Reviewed-by: He Sheng <[email protected]> Signed-off-by: Gu Zitao <[email protected]>
1 parent 453248e commit f345660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/sw_64/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static void __init setup_firmware_fdt(void)
578578

579579
static void __init setup_cpu_caps(void)
580580
{
581-
if (!IS_ENABLED(CONFIG_SUBARCH_C3B) && !is_junzhang_v1())
581+
if (cpuid(GET_FEATURES, 0) & CPU_FEAT_UNA)
582582
static_branch_enable(&hw_una_enabled);
583583
}
584584

0 commit comments

Comments
 (0)