mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 08:28:13 +00:00
13cad9851e
The scheduler IPI does not need the full interrupt entry handling logic when the entry is from kernel mode. Use IDTENTRY_SYSVEC_SIMPLE and spare all the overhead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/20200521202119.835425642@linutronix.de
27 lines
541 B
C
27 lines
541 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Code for supporting irq vector tracepoints.
|
|
*
|
|
* Copyright (C) 2013 Seiji Aguchi <seiji.aguchi@hds.com>
|
|
*
|
|
*/
|
|
#include <linux/jump_label.h>
|
|
#include <linux/atomic.h>
|
|
|
|
#include <asm/hw_irq.h>
|
|
#include <asm/desc.h>
|
|
#include <asm/trace/exceptions.h>
|
|
#include <asm/trace/irq_vectors.h>
|
|
|
|
DEFINE_STATIC_KEY_FALSE(trace_pagefault_key);
|
|
|
|
int trace_pagefault_reg(void)
|
|
{
|
|
static_branch_inc(&trace_pagefault_key);
|
|
return 0;
|
|
}
|
|
|
|
void trace_pagefault_unreg(void)
|
|
{
|
|
static_branch_dec(&trace_pagefault_key);
|
|
}
|