mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
arm64: kpti: force off kpti
Since most of the CPUs aren't prone to meltdown, force off the kpti feature. Enable on required targets. Change-Id: If78c70bcaeac2b157a901e5036190aaf9e5aabf6 Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:
parent
d3fc7ea1c3
commit
1edf9722d4
1 changed files with 2 additions and 1 deletions
|
|
@ -966,7 +966,8 @@ has_useable_cnp(const struct arm64_cpu_capabilities *entry, int scope)
|
|||
}
|
||||
|
||||
static bool __meltdown_safe = true;
|
||||
static int __kpti_forced; /* 0: not forced, >0: forced on, <0: forced off */
|
||||
/* 0: not forced, >0: forced on, <0: forced off */
|
||||
static int __kpti_forced = -1;
|
||||
|
||||
static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
|
||||
int scope)
|
||||
|
|
|
|||
Loading…
Reference in a new issue