]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86/nmi: Remove the 'b2b' parameter from nmi_handle()
authorAndy Lutomirski <luto@kernel.org>
Mon, 20 Jul 2015 18:52:23 +0000 (11:52 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 21 Jul 2015 06:02:32 +0000 (08:02 +0200)
It has never had any effect. Remove it for comprehensibility.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/c91fa38507760d9e54a4b8737fa6409bde896b33.1437418322.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/nmi.c

index c3e985d1751ced9dbab5ac0aa7c38f9623b449f4..f76d6500f458065969155127e18389e96f725465 100644 (file)
@@ -110,7 +110,7 @@ static void nmi_max_handler(struct irq_work *w)
                a->handler, whole_msecs, decimal_msecs);
 }
 
-static int nmi_handle(unsigned int type, struct pt_regs *regs, bool b2b)
+static int nmi_handle(unsigned int type, struct pt_regs *regs)
 {
        struct nmi_desc *desc = nmi_to_desc(type);
        struct nmiaction *a;
@@ -213,7 +213,7 @@ static void
 pci_serr_error(unsigned char reason, struct pt_regs *regs)
 {
        /* check to see if anyone registered against these types of errors */
-       if (nmi_handle(NMI_SERR, regs, false))
+       if (nmi_handle(NMI_SERR, regs))
                return;
 
        pr_emerg("NMI: PCI system error (SERR) for reason %02x on CPU %d.\n",
@@ -247,7 +247,7 @@ io_check_error(unsigned char reason, struct pt_regs *regs)
        unsigned long i;
 
        /* check to see if anyone registered against these types of errors */
-       if (nmi_handle(NMI_IO_CHECK, regs, false))
+       if (nmi_handle(NMI_IO_CHECK, regs))
                return;
 
        pr_emerg(
@@ -284,7 +284,7 @@ unknown_nmi_error(unsigned char reason, struct pt_regs *regs)
         * as only the first one is ever run (unless it can actually determine
         * if it caused the NMI)
         */
-       handled = nmi_handle(NMI_UNKNOWN, regs, false);
+       handled = nmi_handle(NMI_UNKNOWN, regs);
        if (handled) {
                __this_cpu_add(nmi_stats.unknown, handled);
                return;
@@ -332,7 +332,7 @@ static void default_do_nmi(struct pt_regs *regs)
 
        __this_cpu_write(last_nmi_rip, regs->ip);
 
-       handled = nmi_handle(NMI_LOCAL, regs, b2b);
+       handled = nmi_handle(NMI_LOCAL, regs);
        __this_cpu_add(nmi_stats.normal, handled);
        if (handled) {
                /*