Loading Documentation/sysctl/kernel.txt +13 −2 Original line number Diff line number Diff line Loading @@ -23,9 +23,10 @@ show up in /proc/sys/kernel: - auto_msgmni - bootloader_type [ X86 only ] - bootloader_version [ X86 only ] - boot_reason [ ARM only ] - boot_reason [ ARM and ARM64 only ] - callhome [ S390 only ] - cap_last_cap - cold_boot [ ARM and ARM64 only ] - core_pattern - core_pipe_limit - core_uses_pid Loading Loading @@ -166,7 +167,7 @@ Documentation/x86/boot.txt for additional information. boot_reason: ARM -- reason for device boot ARM and ARM64 -- reason for device boot A single bit will be set in the unsigned integer value to identify the reason the device was booted / powered on. The value will be zero if this Loading Loading @@ -197,6 +198,16 @@ cap_last_cap Highest valid capability of the running kernel. Exports CAP_LAST_CAP from the kernel. =============================================================== cold_boot ARM and ARM64 -- 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 arch/arm64/include/asm/processor.h +3 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,9 @@ extern phys_addr_t arm64_dma_phys_limit; #define ARCH_LOW_ADDRESS_LIMIT (arm64_dma_phys_limit - 1) extern unsigned int boot_reason; extern unsigned int cold_boot; struct debug_info { #ifdef CONFIG_HAVE_HW_BREAKPOINT /* Have we suspended stepping by a debugger? */ Loading arch/arm64/kernel/setup.c +6 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,12 @@ phys_addr_t __fdt_pointer __initdata; unsigned int boot_reason; EXPORT_SYMBOL(boot_reason); unsigned int cold_boot; EXPORT_SYMBOL(cold_boot); /* * Standard memory resources */ Loading Loading
Documentation/sysctl/kernel.txt +13 −2 Original line number Diff line number Diff line Loading @@ -23,9 +23,10 @@ show up in /proc/sys/kernel: - auto_msgmni - bootloader_type [ X86 only ] - bootloader_version [ X86 only ] - boot_reason [ ARM only ] - boot_reason [ ARM and ARM64 only ] - callhome [ S390 only ] - cap_last_cap - cold_boot [ ARM and ARM64 only ] - core_pattern - core_pipe_limit - core_uses_pid Loading Loading @@ -166,7 +167,7 @@ Documentation/x86/boot.txt for additional information. boot_reason: ARM -- reason for device boot ARM and ARM64 -- reason for device boot A single bit will be set in the unsigned integer value to identify the reason the device was booted / powered on. The value will be zero if this Loading Loading @@ -197,6 +198,16 @@ cap_last_cap Highest valid capability of the running kernel. Exports CAP_LAST_CAP from the kernel. =============================================================== cold_boot ARM and ARM64 -- 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
arch/arm64/include/asm/processor.h +3 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,9 @@ extern phys_addr_t arm64_dma_phys_limit; #define ARCH_LOW_ADDRESS_LIMIT (arm64_dma_phys_limit - 1) extern unsigned int boot_reason; extern unsigned int cold_boot; struct debug_info { #ifdef CONFIG_HAVE_HW_BREAKPOINT /* Have we suspended stepping by a debugger? */ Loading
arch/arm64/kernel/setup.c +6 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,12 @@ phys_addr_t __fdt_pointer __initdata; unsigned int boot_reason; EXPORT_SYMBOL(boot_reason); unsigned int cold_boot; EXPORT_SYMBOL(cold_boot); /* * Standard memory resources */ Loading