diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-06-13 00:52:56 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-14 08:30:15 -0400 |
commit | c0770f686cf8f464b5b9d4bd28c1ed7604c97ed4 (patch) | |
tree | aeef94c824df00f634c92d42aa16eb26cb9e053a | |
parent | f21f49ea639ac3f24824177dac1268af75a2d373 (diff) |
[POWERPC] Remove a couple of unused definitions from pgtable_32.c
In arch/powerpc/mm/pgtable_32.c, the variable io_bat_index and the
macro is_power_of_4() no longer have any users. This removes them.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index 1c85c6f3bbba..64488723162a 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -36,7 +36,6 @@ | |||
36 | unsigned long ioremap_base; | 36 | unsigned long ioremap_base; |
37 | unsigned long ioremap_bot; | 37 | unsigned long ioremap_bot; |
38 | EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ | 38 | EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ |
39 | int io_bat_index; | ||
40 | 39 | ||
41 | #if defined(CONFIG_6xx) || defined(CONFIG_POWER3) | 40 | #if defined(CONFIG_6xx) || defined(CONFIG_POWER3) |
42 | #define HAVE_BATS 1 | 41 | #define HAVE_BATS 1 |
@@ -299,9 +298,6 @@ void __init mapin_ram(void) | |||
299 | } | 298 | } |
300 | } | 299 | } |
301 | 300 | ||
302 | /* is x a power of 4? */ | ||
303 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) | ||
304 | |||
305 | /* Scan the real Linux page tables and return a PTE pointer for | 301 | /* Scan the real Linux page tables and return a PTE pointer for |
306 | * a virtual address in a context. | 302 | * a virtual address in a context. |
307 | * Returns true (1) if PTE was found, zero otherwise. The pointer to | 303 | * Returns true (1) if PTE was found, zero otherwise. The pointer to |