]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] powerpc: Only calculate htab_size in one place for kexec
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 21 Feb 2006 06:22:55 +0000 (17:22 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 24 Feb 2006 00:36:18 +0000 (11:36 +1100)
commit337a7128dbe68ebe7627b6f954cb32d30d7b11c6
tree6189f61386f3be72cffab14ed1b42a508ef1793c
parentbd6ef57e08d6cce32e93f9fc7b93d361b6a7884f
[PATCH] powerpc: Only calculate htab_size in one place for kexec

For kexec we need to know the size of the MMU hash table.

Currently we calculate the size once in the htab code, and then twice more in
the kexec code, once using htab_hash_mask and once using ppc64_pft_size.
On some machines the ppc64_pft_size calculation is broken because
ppc64_pft_size is not set.

So we need to fix the second calculation, but better still we should just
calculate the size once and use it everywhere else.

Tested on Power5 LPAR, Power4 non-LPAR and Power3.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/machine_kexec_64.c
arch/powerpc/mm/hash_utils_64.c
include/asm-powerpc/mmu.h