aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/pgtable-hwdef.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2014-07-15 10:37:21 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2014-07-23 10:27:46 -0400
commitabe669d7e1a8f9163eb7e8e153e7257d38c1ba3e (patch)
tree58632fadf3e08f37407fb14193c00085e247dab8 /arch/arm64/include/asm/pgtable-hwdef.h
parentc79b954bf6c006f2d3dd9d01f231abeead13a410 (diff)
arm64: Convert bool ARM64_x_LEVELS to int ARM64_PGTABLE_LEVELS
Rather than having several Kconfig options, define int ARM64_PGTABLE_LEVELS which will be also useful in converting some of the pgtable macros. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Jungseok Lee <jungseoklee85@gmail.com>
Diffstat (limited to 'arch/arm64/include/asm/pgtable-hwdef.h')
-rw-r--r--arch/arm64/include/asm/pgtable-hwdef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h
index fddcc3efa569..d453e8bfef06 100644
--- a/arch/arm64/include/asm/pgtable-hwdef.h
+++ b/arch/arm64/include/asm/pgtable-hwdef.h
@@ -16,9 +16,9 @@
16#ifndef __ASM_PGTABLE_HWDEF_H 16#ifndef __ASM_PGTABLE_HWDEF_H
17#define __ASM_PGTABLE_HWDEF_H 17#define __ASM_PGTABLE_HWDEF_H
18 18
19#ifdef CONFIG_ARM64_2_LEVELS 19#if CONFIG_ARM64_PGTABLE_LEVELS == 2
20#include <asm/pgtable-2level-hwdef.h> 20#include <asm/pgtable-2level-hwdef.h>
21#elif defined(CONFIG_ARM64_3_LEVELS) 21#elif CONFIG_ARM64_PGTABLE_LEVELS == 3
22#include <asm/pgtable-3level-hwdef.h> 22#include <asm/pgtable-3level-hwdef.h>
23#else 23#else
24#include <asm/pgtable-4level-hwdef.h> 24#include <asm/pgtable-4level-hwdef.h>