]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blame - tools/testing/radix-tree/linux/preempt.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-disco-kernel.git] / tools / testing / radix-tree / linux / preempt.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ab3a1ffd
MW
2#ifndef __LINUX_PREEMPT_H
3#define __LINUX_PREEMPT_H
4
847d3576 5extern int preempt_count;
1366c37e 6
847d3576
MW
7#define preempt_disable() uatomic_inc(&preempt_count)
8#define preempt_enable() uatomic_dec(&preempt_count)
ab3a1ffd
MW
9
10static inline int in_interrupt(void)
11{
12 return 0;
13}
14
15#endif /* __LINUX_PREEMPT_H */