blob: 65c04c226965d9a0816f889103f42a24957f3fc8 [file] [log] [blame]
Matthew Wilcox847d3572016-12-14 15:08:02 -08001extern int preempt_count;
Matthew Wilcox1366c372016-03-17 14:21:45 -07002
Matthew Wilcox847d3572016-12-14 15:08:02 -08003#define preempt_disable() uatomic_inc(&preempt_count)
4#define preempt_enable() uatomic_dec(&preempt_count)