summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/setup.c
diff options
context:
space:
mode:
authorDavid Collins <collinsd@codeaurora.org>2014-01-10 14:11:24 -0800
committerRohit Vaswani <rvaswani@codeaurora.org>2016-03-01 12:22:13 -0800
commitd4b065ff4717f80fd33c092e855ff89cb58c9f36 (patch)
tree03c3ccce9c4f9827ddedac09c7e80baecfb7a2d6 /arch/arm64/kernel/setup.c
parent8b04432318111ff1c65c51040a9d13350b940a21 (diff)
sysctl: add boot_reason and cold_boot sysctl entries for arm64
Define boot_reason and cold_boot variables in the arm64 version of setup.c so that arm64 targets can export the boot_reason and cold_boot sysctl entries. This feature is required by the qpnp-power-on driver. Change-Id: Id2d4ff5b8caa2e6a35d4ac61e338963d602c8b84 Signed-off-by: David Collins <collinsd@codeaurora.org> [osvaldob: resolved trival merge conflicts] Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r--arch/arm64/kernel/setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
index 3f993007e7d2..f4b69afa2efa 100644
--- a/arch/arm64/kernel/setup.c
+++ b/arch/arm64/kernel/setup.c
@@ -64,6 +64,12 @@
#include <asm/efi.h>
#include <asm/xen/hypervisor.h>
+unsigned int boot_reason;
+EXPORT_SYMBOL(boot_reason);
+
+unsigned int cold_boot;
+EXPORT_SYMBOL(cold_boot);
+
static const char *machine_name;
phys_addr_t __fdt_pointer __initdata;