diff options
| author | David Collins <collinsd@codeaurora.org> | 2014-01-10 14:11:24 -0800 |
|---|---|---|
| committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:13 -0800 |
| commit | d4b065ff4717f80fd33c092e855ff89cb58c9f36 (patch) | |
| tree | 03c3ccce9c4f9827ddedac09c7e80baecfb7a2d6 /kernel/sysctl.c | |
| parent | 8b04432318111ff1c65c51040a9d13350b940a21 (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 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 35bfe0c1360b..53fa75661ae4 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1173,6 +1173,27 @@ static struct ctl_table kern_table[] = { .extra2 = &one, }, #endif +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) + { + .procname = "boot_reason", + .data = &boot_reason, + .maxlen = sizeof(int), + .mode = 0444, + .proc_handler = proc_dointvec, + }, + + { + .procname = "cold_boot", + .data = &cold_boot, + .maxlen = sizeof(int), + .mode = 0444, + .proc_handler = proc_dointvec, + }, +#endif +/* + * NOTE: do not add new entries to this table unless you have read + * Documentation/sysctl/ctl_unnumbered.txt + */ { } }; |
