arm64: Simplify early check for broken TX1 when KASLR is enabled
authorWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 13:59:58 +0000 (13:59 +0000)
committerWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 16:49:27 +0000 (16:49 +0000)
commitebac96ede61a1a46bdef12df3c1f9c20b00f2d88
tree87ad74e80710fd970b6ba97f812f25aa749cef1e
parent09e3c22a86f6889db0e93fb29d9255081a126f64
arm64: Simplify early check for broken TX1 when KASLR is enabled

Now that the decision to use non-global mappings is stored in a variable,
the check to avoid enabling them for the terminally broken ThunderX1
platform can be simplified so that it is only keyed off the MIDR value.

Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c