]> git.baikalelectronics.ru Git - kernel.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)
commit72aa87f9e395c36da03944e0b35cbc9c08933973
tree6189f61386f3be72cffab14ed1b42a508ef1793c
parent4c403352c92d741c2c033b9b23cdef1be8a2905a
[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