aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/setup.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2014-04-03 10:57:15 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2014-05-09 10:53:37 -0400
commita501e32430d4232012ab708b8f0ce841f29e0f02 (patch)
tree96ae526e57f5b5931025893b87419b5e4084fbb0 /arch/arm64/kernel/setup.c
parentbc07c2c6e9ed125d362af0214b6313dca180cb08 (diff)
arm64: Clean up the default pgprot setting
The primary aim of this patchset is to remove the pgprot_default and prot_sect_default global variables and rely strictly on predefined values. The original goal was to be able to run SMP kernels on UP hardware by not setting the Shareability bit. However, it is unlikely to see UP ARMv8 hardware and even if we do, the Shareability bit is no longer assumed to disable cacheable accesses. A side effect is that the device mappings now have the Shareability attribute set. The hardware, however, should ignore it since Device accesses are always Outer Shareable. Following the removal of the two global variables, there is some PROT_* macro reshuffling and cleanup, including the __PAGE_* macros (replaced by PAGE_*). Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r--arch/arm64/kernel/setup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 5b9e046d580e..7450c5802c3f 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -376,7 +376,6 @@ void __init setup_arch(char **cmdline_p)
376 376
377 *cmdline_p = boot_command_line; 377 *cmdline_p = boot_command_line;
378 378
379 init_mem_pgprot();
380 early_ioremap_init(); 379 early_ioremap_init();
381 380
382 parse_early_param(); 381 parse_early_param();