Skip to content

Commit 02ca752

Browse files
Jan BeulichIngo Molnar
authored andcommitted
x86: Remove die_nmi()
With no caller left, the function and the DIE_NMIWATCHDOG enumerator can both go away. Signed-off-by: Jan Beulich <jbeulich@novell.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Don Zickus <dzickus@redhat.com> LKML-Reference: <4D5D521C0200007800032702@vpn.id2.novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent e4cc9f4 commit 02ca752

4 files changed

Lines changed: 0 additions & 36 deletions

File tree

‎arch/x86/include/asm/kdebug.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ enum die_val {
1313
DIE_PANIC,
1414
DIE_NMI,
1515
DIE_DIE,
16-
DIE_NMIWATCHDOG,
1716
DIE_KERNELDEBUG,
1817
DIE_TRAP,
1918
DIE_GPF,

‎arch/x86/include/asm/nmi.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#ifdef CONFIG_X86_LOCAL_APIC
99

10-
extern void die_nmi(char *str, struct pt_regs *regs, int do_panic);
1110
extern int avail_to_resrv_perfctr_nmi_bit(unsigned int);
1211
extern int reserve_perfctr_nmi(unsigned int);
1312
extern void release_perfctr_nmi(unsigned int);

‎arch/x86/kernel/dumpstack.c‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -320,31 +320,6 @@ void die(const char *str, struct pt_regs *regs, long err)
320320
oops_end(flags, regs, sig);
321321
}
322322

323-
void notrace __kprobes
324-
die_nmi(char *str, struct pt_regs *regs, int do_panic)
325-
{
326-
unsigned long flags;
327-
328-
if (notify_die(DIE_NMIWATCHDOG, str, regs, 0, 2, SIGINT) == NOTIFY_STOP)
329-
return;
330-
331-
/*
332-
* We are in trouble anyway, lets at least try
333-
* to get a message out.
334-
*/
335-
flags = oops_begin();
336-
printk(KERN_EMERG "%s", str);
337-
printk(" on CPU%d, ip %08lx, registers:\n",
338-
smp_processor_id(), regs->ip);
339-
show_registers(regs);
340-
oops_end(flags, regs, 0);
341-
if (do_panic || panic_on_oops)
342-
panic("Non maskable interrupt");
343-
nmi_exit();
344-
local_irq_enable();
345-
do_exit(SIGBUS);
346-
}
347-
348323
static int __init oops_setup(char *s)
349324
{
350325
if (!s)

‎arch/x86/kernel/kgdb.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,6 @@ static int __kgdb_notify(struct die_args *args, unsigned long cmd)
533533
}
534534
return NOTIFY_DONE;
535535

536-
case DIE_NMIWATCHDOG:
537-
if (atomic_read(&kgdb_active) != -1) {
538-
/* KGDB CPU roundup: */
539-
kgdb_nmicallback(raw_smp_processor_id(), regs);
540-
return NOTIFY_STOP;
541-
}
542-
/* Enter debugger: */
543-
break;
544-
545536
case DIE_DEBUG:
546537
if (atomic_read(&kgdb_cpu_doing_single_step) != -1) {
547538
if (user_mode(regs))

0 commit comments

Comments
 (0)