summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/system_misc.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-02-20 15:08:51 +0000
committerWill Deacon <will.deacon@arm.com>2018-03-06 18:52:31 +0000
commita26731d9d1e3fa93db0b5781d7e8dd9dbff1313e (patch)
tree375d92e3c830c7024a5a3d4c3d2a3492c150e30e /arch/arm64/include/asm/system_misc.h
parentf71016a8a8c5696530ec7173ee969c68e91d3719 (diff)
downloadop-kernel-dev-a26731d9d1e3fa93db0b5781d7e8dd9dbff1313e.zip
op-kernel-dev-a26731d9d1e3fa93db0b5781d7e8dd9dbff1313e.tar.gz
arm64: Move show_unhandled_signals_ratelimited into traps.c
show_unhandled_signals_ratelimited is only called in traps.c, so move it out of its macro in the dreaded system_misc.h and into a static function in traps.c Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/system_misc.h')
-rw-r--r--arch/arm64/include/asm/system_misc.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm64/include/asm/system_misc.h b/arch/arm64/include/asm/system_misc.h
index 07aa8e3..28893a0 100644
--- a/arch/arm64/include/asm/system_misc.h
+++ b/arch/arm64/include/asm/system_misc.h
@@ -45,17 +45,6 @@ extern void __show_regs(struct pt_regs *);
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; \
-})
-
int handle_guest_sea(phys_addr_t addr, unsigned int esr);
#endif /* __ASSEMBLY__ */
OpenPOWER on IntegriCloud