mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 04:17:58 +07:00
ad3bc25a32
... with the goal of eventually enabling -Wmissing-prototypes by default. At least on x86. Make functions static where possible, otherwise add prototypes or make them visible through includes. asm/trace/ changes courtesy of Steven Rostedt <rostedt@goodmis.org>. Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Ingo Molnar <mingo@kernel.org> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> # ACPI + cpufreq bits Cc: Andrew Banman <andrew.banman@hpe.com> Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mike Travis <mike.travis@hpe.com> Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Yi Wang <wang.yi59@zte.com.cn> Cc: linux-acpi@vger.kernel.org
45 lines
793 B
C
45 lines
793 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);
|
|
}
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
DEFINE_STATIC_KEY_FALSE(trace_resched_ipi_key);
|
|
|
|
int trace_resched_ipi_reg(void)
|
|
{
|
|
static_branch_inc(&trace_resched_ipi_key);
|
|
return 0;
|
|
}
|
|
|
|
void trace_resched_ipi_unreg(void)
|
|
{
|
|
static_branch_dec(&trace_resched_ipi_key);
|
|
}
|
|
|
|
#endif
|