--- zzzz-none-000/linux-3.10.107/arch/arm64/include/asm/system_misc.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm64/include/asm/system_misc.h 2021-02-04 17:41:59.000000000 +0000 @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include struct pt_regs; @@ -40,8 +43,18 @@ extern void show_pte(struct mm_struct *mm, unsigned long addr); extern void __show_regs(struct pt_regs *); -void soft_restart(unsigned long); -extern void (*arm_pm_restart)(char str, const char *cmd); +extern void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd); + +#define show_unhandled_signals_ratelimited() \ +({ \ + static DEFINE_RATELIMIT_STATE(_rs, \ + DEFAULT_RATELIMIT_INTERVAL, \ + DEFAULT_RATELIMIT_BURST); \ + bool __show_ratelimited = false; \ + if (show_unhandled_signals && __ratelimit(&_rs)) \ + __show_ratelimited = true; \ + __show_ratelimited; \ +}) #define UDBG_UNDEFINED (1 << 0) #define UDBG_SYSCALL (1 << 1)