Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60ffdb36 authored by Graf Yang's avatar Graf Yang Committed by Mike Frysinger
Browse files

Blackfin: implement nmi_watchdog for SMP on BF561

parent 726e9656
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -238,6 +238,15 @@ config EARLY_PRINTK
	  all of this lives in the init section and is thrown away after the
	  kernel boots completely.

config NMI_WATCHDOG
	bool "Enable NMI watchdog to help debugging lockup on SMP"
	default n
	depends on (SMP && !BFIN_SCRATCH_REG_RETN)
	help
	  If any CPU in the system does not execute the period local timer
	  interrupt for more than 5 seconds, then the NMI handler dumps debug
	  information. This information can be used to debug the lockup.

config CPLB_INFO
	bool "Display the CPLB information"
	help
+4 −0
Original line number Diff line number Diff line
@@ -38,4 +38,8 @@

#include <asm-generic/irq.h>

#ifdef CONFIG_NMI_WATCHDOG
# define ARCH_HAS_NMI_WATCHDOG
#endif

#endif				/* _BFIN_IRQ_H_ */
+12 −0
Original line number Diff line number Diff line
/*
 * Copyright 2010 Analog Devices Inc.
 *
 * Licensed under the GPL-2
 */

#ifndef _BFIN_NMI_H_
#define _BFIN_NMI_H_

#include <linux/nmi.h>

#endif
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ extern char coreb_trampoline_start, coreb_trampoline_end;
struct corelock_slot {
	int lock;
};
extern struct corelock_slot corelock;

void smp_icache_flush_range_others(unsigned long start,
				   unsigned long end);
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ obj-$(CONFIG_CPLB_INFO) += cplbinfo.o
obj-$(CONFIG_MODULES)                += module.o
obj-$(CONFIG_KGDB)                   += kgdb.o
obj-$(CONFIG_KGDB_TESTS)             += kgdb_test.o
obj-$(CONFIG_NMI_WATCHDOG)           += nmi.o
obj-$(CONFIG_EARLY_PRINTK)           += early_printk.o
obj-$(CONFIG_EARLY_PRINTK)           += shadow_console.o
obj-$(CONFIG_STACKTRACE)             += stacktrace.o
Loading