mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
nmi: create generic NMI backtrace implementation
x86s NMI backtrace implementation (for arch_trigger_all_cpu_backtrace()) is fairly generic in nature - the only architecture specific bits are the act of raising the NMI to other CPUs, and reporting the status of the NMI handler. These are fairly simple to factor out, and produce a generic implementation which can be shared between ARM and x86. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
d770e558e2
commit
b2c0b2cbb2
3 changed files with 169 additions and 1 deletions
|
@ -49,6 +49,12 @@ static inline bool trigger_allbutself_cpu_backtrace(void)
|
|||
arch_trigger_all_cpu_backtrace(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
/* generic implementation */
|
||||
void nmi_trigger_all_cpu_backtrace(bool include_self,
|
||||
void (*raise)(cpumask_t *mask));
|
||||
bool nmi_cpu_backtrace(struct pt_regs *regs);
|
||||
|
||||
#else
|
||||
static inline bool trigger_all_cpu_backtrace(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue