summaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/linux/preempt.h
blob: 65c04c226965d9a0816f889103f42a24957f3fc8 (plain)
1
2
3
4
extern int preempt_count;

#define preempt_disable()	uatomic_inc(&preempt_count)
#define preempt_enable()	uatomic_dec(&preempt_count)