remarkable-linux/arch/powerpc
Christophe Leroy 9b081e1080 powerpc: port 64 bits pgtable_cache to 32 bits
Today powerpc64 uses a set of pgtable_caches while powerpc32 uses
standard pages when using 4k pages and a single pgtable_cache
if using other size pages.

In preparation of implementing huge pages on the 8xx, this patch
replaces the specific powerpc32 handling by the 64 bits approach.

This is done by:
* moving 64 bits pgtable_cache_add() and pgtable_cache_init()
in a new file called init-common.c
* modifying pgtable_cache_init() to also handle the case
without PMD
* removing the 32 bits version of pgtable_cache_add() and
pgtable_cache_init()
* copying related header contents from 64 bits into both the
book3s/32 and nohash/32 header files

On the 8xx, the following cache sizes will be used:
* 4k pages mode:
- PGT_CACHE(10) for PGD
- PGT_CACHE(3) for 512k hugepage tables
* 16k pages mode:
- PGT_CACHE(6) for PGD
- PGT_CACHE(7) for 512k hugepage tables
- PGT_CACHE(3) for 8M hugepage tables

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Scott Wood <oss@buserror.net>
2016-12-09 22:48:01 -06:00
..
boot powerpc/dts: add device tree entry for W83793 on T4240RDB 2016-11-22 01:26:48 -06:00
configs powerpc/85xx: Enable gpio power/reset driver 2016-11-23 01:23:38 -06:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2016-10-10 14:04:16 -07:00
include powerpc: port 64 bits pgtable_cache to 32 bits 2016-12-09 22:48:01 -06:00
kernel powerpc/vio: Clarify vio_find_node() reference counting 2016-11-14 20:05:59 +11:00
kvm KVM: PPC: Book3S HV: Fix build error when SMP=n 2016-10-22 08:44:37 +11:00
lib powerpc: EX_TABLE macro for exception tables 2016-11-14 11:11:51 +11:00
math-emu
mm powerpc: port 64 bits pgtable_cache to 32 bits 2016-12-09 22:48:01 -06:00
net powerpc/bpf: Add support for bpf constant blinding 2016-10-04 20:33:20 +11:00
oprofile powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
perf powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
platforms powerpc/83xx/suspend: use builtin_platform_driver 2016-12-04 19:51:27 -06:00
scripts
sysdev powerpc/fsl_pmc: use builtin_platform_driver 2016-12-04 19:51:44 -06:00
xmon powerpc/xmon: Don't use ld on 32-bit 2016-09-13 17:37:02 +10:00
Kconfig powerpc/64: Add an option to force run-at-load to test relocation 2016-11-14 11:11:51 +11:00
Kconfig.debug powerpc/mm: Dump linux pagetables 2016-11-17 17:11:46 +11:00
Makefile powerpc/book3s64: Always build for power4 or later 2016-11-14 11:11:51 +11:00
relocs_check.sh powerpc/64: whitelist unresolved modversions CRCs 2016-09-22 14:46:31 +02:00