diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-05-17 09:19:23 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-05-17 09:19:23 (GMT) |
commit | 516793c61b3db1f60e0b0d0e3c382bcca9ae84fd (patch) | |
tree | 1e9a0b8e01ecac7c60c5d0f6b157181ab1132467 /include/asm-arm | |
parent | c6af66b9fe93990c70aaee53ce3ce7e53a83676a (diff) | |
download | linux-fsl-qoriq-516793c61b3db1f60e0b0d0e3c382bcca9ae84fd.tar.xz |
[ARM] ARMv6: add CPU_HAS_ASID configuration
Presently, we check for the minimum ARM architecture that we're
building for to determine whether we need ASID support. This is
wrong - if we're going to support a range of CPUs which include
ARMv6 or higher, we need the ASID.
Convert the checks to use a new configuration symbol, and arrange
for ARMv6 and higher CPU entries to select it.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/mmu.h | 4 | ||||
-rw-r--r-- | include/asm-arm/mmu_context.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-arm/mmu.h b/include/asm-arm/mmu.h index fe2a23b..53099d4 100644 --- a/include/asm-arm/mmu.h +++ b/include/asm-arm/mmu.h @@ -4,13 +4,13 @@ #ifdef CONFIG_MMU typedef struct { -#if __LINUX_ARM_ARCH__ >= 6 +#ifdef CONFIG_CPU_HAS_ASID unsigned int id; #endif unsigned int kvm_seq; } mm_context_t; -#if __LINUX_ARM_ARCH__ >= 6 +#ifdef CONFIG_CPU_HAS_ASID #define ASID(mm) ((mm)->context.id & 255) #else #define ASID(mm) (0) diff --git a/include/asm-arm/mmu_context.h b/include/asm-arm/mmu_context.h index 4981ad4..6913d02 100644 --- a/include/asm-arm/mmu_context.h +++ b/include/asm-arm/mmu_context.h @@ -20,7 +20,7 @@ void __check_kvm_seq(struct mm_struct *mm); -#if __LINUX_ARM_ARCH__ >= 6 +#ifdef CONFIG_CPU_HAS_ASID /* * On ARMv6, we have the following structure in the Context ID: |