powerpc/dt_cpu_ftrs: Make use of ISA_V3_* macros
cover powerpc/dt_cpu_ftrs: Make use of ISA_V3_* macros
The first patch removes unused macro ISA_V2_07B. The second and third patches make use of macros ISA_V3_0B and ISA_V3_1, respectively, instead their corresponding literals.
Murilo Opsfelder Araujo (3):
powerpc/dt_cpu_ftrs: Remove unused macro ISA_V2_07B powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_0B powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_1
arch/powerpc/kernel/dt_cpu_ftrs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
--
2.25.4
PATCH 1/3 powerpc/dt_cpu_ftrs: Remove unused macro ISA_V2_07B
Macro ISA_V2_07B is defined but not used anywhere else in the code.
--- arch/powerpc/kernel/dt_cpu_ftrs.c | 1 - 1 file changed, 1 deletion(-)
arch/powerpc/kernel/dt_cpu_ftrs.c +0 -1
@@ -24,7 +24,6 @@/* Device-tree visible constants follow */ -#define ISA_V2_07B 2070#define ISA_V3_0B 3000#define ISA_V3_1 3100
Signature · 1 line
2.25.4
PATCH 2/3 powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_0B
In reply to Murilo Opsfelder AraujoMacro ISA_V3_0B was defined but never used. Use it instead of literal.
--- arch/powerpc/kernel/dt_cpu_ftrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/dt_cpu_ftrs.c +1 -1
@@ -673,7 +673,7 @@ static void __init cpufeatures_setup_start(u32 isa) {pr_info ("setup for ISA %d\n" , isa); -if (isa >=3000 ) { +if (isa >=ISA_V3_0B ) { cur_cpu_spec->cpu_features |=CPU_FTR_ARCH_300 ; cur_cpu_spec->cpu_user_features2 |=PPC_FEATURE2_ARCH_3_00 ; }
Signature · 1 line
2.25.4
PATCH 3/3 powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_1
In reply to Murilo Opsfelder AraujoMacro ISA_V3_1 was defined but never used. Use it instead of literal.
--- arch/powerpc/kernel/dt_cpu_ftrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kernel/dt_cpu_ftrs.c +1 -1
@@ -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 ; }
Signature · 1 line
2.25.4
Michael Ellerman
AppliedQuoted 10 lines · Murilo Opsfelder Araujo
The first patch removes unused macro
ISA_V2_07B. The second and third patches make use of macrosISA_V3_0BandISA_V3_1, respectively, instead their corresponding literals.Murilo Opsfelder Araujo (3):
powerpc/dt_cpu_ftrs: Remove unused macroISA_V2_07Bpowerpc/dt_cpu_ftrs: Make use of macroISA_V3_0Bpowerpc/dt_cpu_ftrs: Make use of macroISA_V3_1[...]
Applied to powerpc/next.
[1/3] powerpc/dt_cpu_ftrs: Remove unused macro ISA_V2_07B
https://git.kernel.org/powerpc/c/f39eb5d8ac707fd59029a06c3f985f29b1aaa26b [2/3] powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_0B https://git.kernel.org/powerpc/c/e781f12a60a7bddb50909d42478cca8724c8b113 [3/3] powerpc/dt_cpu_ftrs: Make use of macro ISA_V3_1 https://git.kernel.org/powerpc/c/7714394706c0309b3f3fc474b390463d60eb6cb1
cheers