drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / x86 / kernel / tracepoint.c
blob03ae1caaa878df00ec5901824e1cc30cbec0f201
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2013 Seiji Aguchi <seiji.aguchi@hds.com>
4 */
5 #include <linux/jump_label.h>
6 #include <linux/atomic.h>
8 #include <asm/trace/exceptions.h>
10 DEFINE_STATIC_KEY_FALSE(trace_pagefault_key);
12 int trace_pagefault_reg(void)
14 static_branch_inc(&trace_pagefault_key);
15 return 0;
18 void trace_pagefault_unreg(void)
20 static_branch_dec(&trace_pagefault_key);