]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_1
authorMurilo Opsfelder Araujo <muriloo@linux.ibm.com>
Wed, 10 Jun 2020 21:51:14 +0000 (18:51 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 00:37:56 +0000 (10:37 +1000)
Macro ISA_V3_1 was defined but never used.  Use it instead of literal.

Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200610215114.167544-4-muriloo@linux.ibm.com
arch/powerpc/kernel/dt_cpu_ftrs.c

index 9d6e833da2bdcbba8b6d86d9ad1bf926adbc2320..a0edeb391e3e49969c2b6665095570ba70ddc1ac 100644 (file)
@@ -678,7 +678,7 @@ static void __init cpufeatures_setup_start(u32 isa)
                cur_cpu_spec->cpu_user_features2 |= PPC_FEATURE2_ARCH_3_00;
        }
 
-       if (isa >= 3100) {
+       if (isa >= ISA_V3_1) {
                cur_cpu_spec->cpu_features |= CPU_FTR_ARCH_31;
                cur_cpu_spec->cpu_user_features2 |= PPC_FEATURE2_ARCH_3_1;
        }