Revert "arm64: kpti: force off kpti"

Control kpti via bootargs and keep default as
enabled.

This reverts commit 1edf9722d4.

Change-Id: I707641061ad67498228df64e361139baf2b7a1a3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
Vinayak Menon 2020-09-10 12:14:03 +05:30
commit 428413e2e6

View file

@ -964,8 +964,7 @@ has_useable_cnp(const struct arm64_cpu_capabilities *entry, int scope)
}
static bool __meltdown_safe = true;
/* 0: not forced, >0: forced on, <0: forced off */
static int __kpti_forced = -1;
static int __kpti_forced; /* 0: not forced, >0: forced on, <0: forced off */
static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
int scope)