Thread (2 messages) flat view 2 messages, 2 authors, 2008-07-21

Re: [3/5] replace CONFIG_POWER4 by CONFIG_PPC64

From: Arnd Bergmann <arnd@arndb.de>
Date: 2008-07-21 09:40:47

On Monday 21 July 2008, Marvin wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c
index c53145f..c3509c8 100644
--- a/arch/powerpc/mm/ppc_mmu_32.c
+++ b/arch/powerpc/mm/ppc_mmu_32.c
@@ -74,7 +74,7 @@ unsigned long p_mapped_by_bats(phys_addr_t pa)
=A0
=A0unsigned long __init mmu_mapin_ram(void)
=A0{
-#ifdef CONFIG_POWER4
+#ifdef CONFIG_PPC64
=A0=A0=A0=A0=A0=A0=A0=A0return 0;
=A0#else
=A0=A0=A0=A0=A0=A0=A0=A0unsigned long tot, bl, done;
ppc_mmu_32 is 32-bit only, so you can kill this #ifdef.
quoted hunk ↗ jump to hunk
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputabl=
e.h
quoted hunk ↗ jump to hunk
index 0ef9abc..97fdbaf 100644
--- a/include/asm-powerpc/cputable.h
+++ b/include/asm-powerpc/cputable.h
@@ -257,7 +257,7 @@ extern void do_feature_fixups(unsigned long value, vo=
id=20
*fixup_start,
 #endif
=20
 #define CLASSIC_PPC (!defined(CONFIG_8xx) && !defined(CONFIG_4xx) && \
-		     !defined(CONFIG_POWER4) && !defined(CONFIG_BOOKE))
+		     !defined(CONFIG_PPC64) && !defined(CONFIG_BOOKE))
=20
This would be more logical in the opposite way:

#define CLASSIC_PPC (defined(CONFIG_PPC32) && !defined(CONFIG_8xx)
		     && !defined(CONFIG_4xx) && !defined(CONFIG_BOOKE))

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help