hugetlb: introduce generic version of hugetlb_free_pgd_range
[linux/fpc-iii.git] / arch / x86 / kernel / tracepoint.c
blob5bd30c442794888ace52ffc2658c7b9b6e21d32a
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Code for supporting irq vector tracepoints.
5 * Copyright (C) 2013 Seiji Aguchi <seiji.aguchi@hds.com>
7 */
8 #include <linux/jump_label.h>
9 #include <linux/atomic.h>
11 #include <asm/hw_irq.h>
12 #include <asm/desc.h>
14 DEFINE_STATIC_KEY_FALSE(trace_pagefault_key);
16 int trace_pagefault_reg(void)
18 static_branch_inc(&trace_pagefault_key);
19 return 0;
22 void trace_pagefault_unreg(void)
24 static_branch_dec(&trace_pagefault_key);
27 #ifdef CONFIG_SMP
29 DEFINE_STATIC_KEY_FALSE(trace_resched_ipi_key);
31 int trace_resched_ipi_reg(void)
33 static_branch_inc(&trace_resched_ipi_key);
34 return 0;
37 void trace_resched_ipi_unreg(void)
39 static_branch_dec(&trace_resched_ipi_key);
42 #endif