aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-01-27 14:52:28 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2015-01-27 16:49:11 +0000
commitb1513bcaba672015e3f6209ada7dafeb31ed28f2 (patch)
tree8c583be26f75c93cd0c0d933d7651b60265e76bd
parent539d1ebf27b2cfc078ef887e694aa286ac3facfc (diff)
downloadlinux-b1513bcaba672015e3f6209ada7dafeb31ed28f2.tar.gz
arm: traps: Remove arch_filter_nmi_handler
This got seriously panned during code review and is currently in my way. For now lets just nuke it... we'll squash this patch into the perf/NMI series shortly. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--arch/arm/kernel/traps.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index a5ffddeb224e..7b697971c309 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -464,26 +464,6 @@ die_sig:
arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
}
-int arch_filter_nmi_handler(irq_handler_t handler)
-{
- irq_handler_t whitelist[] = {
-#ifdef CONFIG_HW_PERF_EVENTS
- armpmu_dispatch_irq,
-#endif
- };
- int i;
-
- for (i = 0; i < ARRAY_SIZE(whitelist); i++)
- if (handler == whitelist[i]) {
- pr_debug("%pS accepted for use as NMI handler\n",
- handler);
- return 0;
- }
-
- pr_err("%pS cannot be used as an NMI handler\n", handler);
- return -EPERM;
-}
-
/*
* Handle FIQ similarly to NMI on x86 systems.
*