From ea2143f756b64a39666dca46dab7cc719dd33652 Mon Sep 17 00:00:00 2001 From: David Keitel Date: Tue, 26 Mar 2013 18:50:03 -0700 Subject: 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 [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 --- kernel/sysctl_binary.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/sysctl_binary.c') diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index 5ec5bbc09d39..b65c78c15ab3 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c @@ -139,6 +139,7 @@ static const struct bin_table bin_kern_table[] = { { CTL_INT, KERN_PANIC_ON_NMI, "panic_on_unrecovered_nmi" }, { CTL_INT, KERN_PANIC_ON_WARN, "panic_on_warn" }, { CTL_INT, KERN_BOOT_REASON, "boot_reason" }, + { CTL_INT, KERN_COLD_BOOT, "cold_boot" }, {} }; -- cgit v1.2.3