diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-07-09 22:29:26 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-28 00:11:22 -0400 |
commit | 1e07a0a0336b6349b72127b7280995301f18dba3 (patch) | |
tree | 20a6026185a75e681b5047bd9f2c790fc24e8139 | |
parent | 804ece07e957298fa15695677c92631744d620af (diff) |
powerpc: Remove CLASSIC_PPC
We have a strange #define in cputable.h called CLASSIC_PPC.
Although it is defined for 32 & 64bit, it's only used for 32bit and
it's basically a duplicate of CONFIG_PPC_BOOK3S_32, so let's use
the latter.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/include/asm/cputable.h | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/cputable.h b/arch/powerpc/include/asm/cputable.h index 37feff3e19eb..4a81cbf50779 100644 --- a/arch/powerpc/include/asm/cputable.h +++ b/arch/powerpc/include/asm/cputable.h | |||
@@ -267,9 +267,6 @@ extern const char *powerpc_base_platform; | |||
267 | #define CPU_FTR_MAYBE_CAN_NAP 0 | 267 | #define CPU_FTR_MAYBE_CAN_NAP 0 |
268 | #endif | 268 | #endif |
269 | 269 | ||
270 | #define CLASSIC_PPC (!defined(CONFIG_8xx) && !defined(CONFIG_4xx) && \ | ||
271 | !defined(CONFIG_BOOKE)) | ||
272 | |||
273 | #define CPU_FTRS_PPC601 (CPU_FTR_COMMON | CPU_FTR_601 | \ | 270 | #define CPU_FTRS_PPC601 (CPU_FTR_COMMON | CPU_FTR_601 | \ |
274 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_UNIFIED_ID_CACHE) | 271 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_UNIFIED_ID_CACHE) |
275 | #define CPU_FTRS_603 (CPU_FTR_COMMON | \ | 272 | #define CPU_FTRS_603 (CPU_FTR_COMMON | \ |
@@ -467,7 +464,7 @@ extern const char *powerpc_base_platform; | |||
467 | #else | 464 | #else |
468 | enum { | 465 | enum { |
469 | CPU_FTRS_POSSIBLE = | 466 | CPU_FTRS_POSSIBLE = |
470 | #if CLASSIC_PPC | 467 | #ifdef CONFIG_PPC_BOOK3S_32 |
471 | CPU_FTRS_PPC601 | CPU_FTRS_603 | CPU_FTRS_604 | CPU_FTRS_740_NOTAU | | 468 | CPU_FTRS_PPC601 | CPU_FTRS_603 | CPU_FTRS_604 | CPU_FTRS_740_NOTAU | |
472 | CPU_FTRS_740 | CPU_FTRS_750 | CPU_FTRS_750FX1 | | 469 | CPU_FTRS_740 | CPU_FTRS_750 | CPU_FTRS_750FX1 | |
473 | CPU_FTRS_750FX2 | CPU_FTRS_750FX | CPU_FTRS_750GX | | 470 | CPU_FTRS_750FX2 | CPU_FTRS_750FX | CPU_FTRS_750GX | |
@@ -517,7 +514,7 @@ enum { | |||
517 | #else | 514 | #else |
518 | enum { | 515 | enum { |
519 | CPU_FTRS_ALWAYS = | 516 | CPU_FTRS_ALWAYS = |
520 | #if CLASSIC_PPC | 517 | #ifdef CONFIG_PPC_BOOK3S_32 |
521 | CPU_FTRS_PPC601 & CPU_FTRS_603 & CPU_FTRS_604 & CPU_FTRS_740_NOTAU & | 518 | CPU_FTRS_PPC601 & CPU_FTRS_603 & CPU_FTRS_604 & CPU_FTRS_740_NOTAU & |
522 | CPU_FTRS_740 & CPU_FTRS_750 & CPU_FTRS_750FX1 & | 519 | CPU_FTRS_740 & CPU_FTRS_750 & CPU_FTRS_750FX1 & |
523 | CPU_FTRS_750FX2 & CPU_FTRS_750FX & CPU_FTRS_750GX & | 520 | CPU_FTRS_750FX2 & CPU_FTRS_750FX & CPU_FTRS_750GX & |
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 4fb0bb2ac885..9b6dcaaec1a3 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -527,7 +527,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
527 | #endif /* CONFIG_PPC_BOOK3S_64 */ | 527 | #endif /* CONFIG_PPC_BOOK3S_64 */ |
528 | 528 | ||
529 | #ifdef CONFIG_PPC32 | 529 | #ifdef CONFIG_PPC32 |
530 | #if CLASSIC_PPC | 530 | #ifdef CONFIG_PPC_BOOK3S_32 |
531 | { /* 601 */ | 531 | { /* 601 */ |
532 | .pvr_mask = 0xffff0000, | 532 | .pvr_mask = 0xffff0000, |
533 | .pvr_value = 0x00010000, | 533 | .pvr_value = 0x00010000, |
@@ -1167,7 +1167,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
1167 | .machine_check = machine_check_generic, | 1167 | .machine_check = machine_check_generic, |
1168 | .platform = "ppc603", | 1168 | .platform = "ppc603", |
1169 | }, | 1169 | }, |
1170 | #endif /* CLASSIC_PPC */ | 1170 | #endif /* CONFIG_PPC_BOOK3S_32 */ |
1171 | #ifdef CONFIG_8xx | 1171 | #ifdef CONFIG_8xx |
1172 | { /* 8xx */ | 1172 | { /* 8xx */ |
1173 | .pvr_mask = 0xffff0000, | 1173 | .pvr_mask = 0xffff0000, |