diff options
| author | David Keitel <dkeitel@codeaurora.org> | 2013-03-26 18:50:03 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-21 15:13:20 -0700 |
| commit | ea2143f756b64a39666dca46dab7cc719dd33652 (patch) | |
| tree | b90fed036caaaf38f91a4c940d7a17a4e3ff0017 /arch/arm/kernel/setup.c | |
| parent | 44ed42824b3b3fa37be82227409f7d2f64b18c43 (diff) | |
sysctl: add cold_boot sysctl entry
Add a cold_boot parameter which supplements the
boot_reason sysctl entry with information about
whether the system was booted from cold or warm state.
/proc/sys/kernel/cold_boot entry is updated with 1 or 0 when
system was booted from cold or warm boot state respecitively.
CRs-Fixed: 461256
Change-Id: I2bc5d80c8f26eb9e9dbb4b34960d991a51a224e4
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
[abhimany: fixup minor merge conflict and drop changes to
kernel/sysctl.c and Documentation since it was brought in via
snapshot commit]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'arch/arm/kernel/setup.c')
| -rw-r--r-- | arch/arm/kernel/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index a35c62bf9b37..ebdde5b9744c 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -117,6 +117,9 @@ EXPORT_SYMBOL(arch_read_hardware_id); unsigned int boot_reason; EXPORT_SYMBOL(boot_reason); +unsigned int cold_boot; +EXPORT_SYMBOL(cold_boot); + #ifdef MULTI_CPU struct processor processor __read_mostly; #endif |
