1 // SPDX-License-Identifier: MIT
3 * Copyright © 2018 Intel Corporation
6 #include <linux/preempt.h>
7 #include <linux/bottom_half.h>
8 #include <linux/irqflags.h>
10 #include "igt_atomic.h"
12 static void __preempt_begin(void)
17 static void __preempt_end(void)
22 static void __softirq_begin(void)
27 static void __softirq_end(void)
32 static void __hardirq_begin(void)
37 static void __hardirq_end(void)
42 const struct igt_atomic_section igt_atomic_phases[] = {
43 { "preempt", __preempt_begin, __preempt_end },
44 { "softirq", __softirq_begin, __softirq_end },
45 { "hardirq", __hardirq_begin, __hardirq_end },