mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
powerpc/watchdog: add support for hardlockup_sys_info sysctl
Commita9af76a787("watchdog: add sys_info sysctls to dump sys info on system lockup") adds 'hardlock_sys_info' systcl knob for general kernel watchdog to control what kinds of system debug info to be dumped on hardlockup. Add similar support in powerpc watchdog code to make the sysctl knob more general, which also fixes a compiling warning in general watchdog code reported by 0day bot. Link: https://lkml.kernel.org/r/20251231080309.39642-1-feng.tang@linux.alibaba.com Fixes:a9af76a787("watchdog: add sys_info sysctls to dump sys info on system lockup") Signed-off-by: Feng Tang <feng.tang@linux.alibaba.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202512030920.NFKtekA7-lkp@intel.com/ Suggested-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -71,7 +71,7 @@ unsigned int __read_mostly hardlockup_panic =
|
||||
* hard lockup is detected, it could be task, memory, lock etc.
|
||||
* Refer include/linux/sys_info.h for detailed bit definition.
|
||||
*/
|
||||
static unsigned long hardlockup_si_mask;
|
||||
unsigned long hardlockup_si_mask;
|
||||
|
||||
#ifdef CONFIG_SYSFS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user