Loading Documentation/sysctl/kernel.txt +11 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ show up in /proc/sys/kernel: - boot_reason [ ARM only ] - callhome [ S390 only ] - cap_last_cap - cold_boot [ ARM only ] - core_pattern - core_pipe_limit - core_uses_pid Loading Loading @@ -198,6 +199,16 @@ cap_last_cap Highest valid capability of the running kernel. Exports CAP_LAST_CAP from the kernel. =============================================================== cold_boot ARM -- indicator for system cold boot A single bit will be set in the unsigned integer value to identify whether the device was booted from a cold or warm state. Zero indicating a warm boot and one indicating a cold boot. ============================================================== core_pattern: Loading arch/arm/include/asm/processor.h +1 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ #endif extern unsigned int boot_reason; extern unsigned int cold_boot; struct debug_info { #ifdef CONFIG_HAVE_HW_BREAKPOINT Loading arch/arm/kernel/setup.c +3 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,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 __ro_after_init; #endif Loading include/uapi/linux/sysctl.h +1 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ enum KERN_PANIC_ON_NMI=76, /* int: whether we will panic on an unrecovered */ KERN_PANIC_ON_WARN=77, /* int: call panic() in WARN() functions */ KERN_BOOT_REASON=78, /* int: identify reason system was booted */ KERN_COLD_BOOT=79, /* int: identify if system cold booted */ }; Loading kernel/sysctl.c +9 −1 Original line number Diff line number Diff line Loading @@ -1406,6 +1406,14 @@ static struct ctl_table kern_table[] = { .mode = 0444, .proc_handler = proc_dointvec, }, { .procname = "cold_boot", .data = &cold_boot, .maxlen = sizeof(int), .mode = 0444, .proc_handler = proc_dointvec, }, #endif { } }; Loading Loading
Documentation/sysctl/kernel.txt +11 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ show up in /proc/sys/kernel: - boot_reason [ ARM only ] - callhome [ S390 only ] - cap_last_cap - cold_boot [ ARM only ] - core_pattern - core_pipe_limit - core_uses_pid Loading Loading @@ -198,6 +199,16 @@ cap_last_cap Highest valid capability of the running kernel. Exports CAP_LAST_CAP from the kernel. =============================================================== cold_boot ARM -- indicator for system cold boot A single bit will be set in the unsigned integer value to identify whether the device was booted from a cold or warm state. Zero indicating a warm boot and one indicating a cold boot. ============================================================== core_pattern: Loading
arch/arm/include/asm/processor.h +1 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ #endif extern unsigned int boot_reason; extern unsigned int cold_boot; struct debug_info { #ifdef CONFIG_HAVE_HW_BREAKPOINT Loading
arch/arm/kernel/setup.c +3 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,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 __ro_after_init; #endif Loading
include/uapi/linux/sysctl.h +1 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,7 @@ enum KERN_PANIC_ON_NMI=76, /* int: whether we will panic on an unrecovered */ KERN_PANIC_ON_WARN=77, /* int: call panic() in WARN() functions */ KERN_BOOT_REASON=78, /* int: identify reason system was booted */ KERN_COLD_BOOT=79, /* int: identify if system cold booted */ }; Loading
kernel/sysctl.c +9 −1 Original line number Diff line number Diff line Loading @@ -1406,6 +1406,14 @@ static struct ctl_table kern_table[] = { .mode = 0444, .proc_handler = proc_dointvec, }, { .procname = "cold_boot", .data = &cold_boot, .maxlen = sizeof(int), .mode = 0444, .proc_handler = proc_dointvec, }, #endif { } }; Loading