We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1ce80 commit 6224426Copy full SHA for 6224426
arch/arm64/kernel/cpufeature.c
@@ -3052,13 +3052,9 @@ static void __init enable_cpu_capabilities(u16 scope_mask)
3052
boot_scope = !!(scope_mask & SCOPE_BOOT_CPU);
3053
3054
for (i = 0; i < ARM64_NCAPS; i++) {
3055
- unsigned int num;
3056
-
3057
caps = cpucap_ptrs[i];
3058
- if (!caps || !(caps->type & scope_mask))
3059
- continue;
3060
- num = caps->capability;
3061
- if (!cpus_have_cap(num))
+ if (!caps || !(caps->type & scope_mask) ||
+ !cpus_have_cap(caps->capability))
3062
continue;
3063
3064
if (boot_scope && caps->cpu_enable)
0 commit comments