summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_cpu_freq_switch.c
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-10-12 17:52:23 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:57:44 -0700
commitaf7618f309ad963edc3e87e4ca308e585ed79e18 (patch)
treefb47a5d053f3157939d9e85722cd1c94da376010 /kernel/trace/trace_cpu_freq_switch.c
parent6bc3fcc1f0f2ce988e589f1b912a8cdb686d54f8 (diff)
soc: qcom: Add kernel_protect library and initcall
It's good security practice to make your executable code read-only. On hypervisor-enabled targets, this can be trivially accomplished by removing the writable attribute from all stage-2 mappings of the kernel text. Add a small library and initcall to do this. Due to constraints on the hypervisor, this needs to happen before all of the cores are brought out of reset, so make it an early_initcall. Change-Id: I2d3ee4ad69402d98f0f6a9078c58e66cd227d222 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'kernel/trace/trace_cpu_freq_switch.c')
0 files changed, 0 insertions, 0 deletions