Matthew Wilcox | 847d357 | 2016-12-14 15:08:02 -0800 | [diff] [blame] | 1 | extern int preempt_count; |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 2 | |
Matthew Wilcox | 847d357 | 2016-12-14 15:08:02 -0800 | [diff] [blame] | 3 | #define preempt_disable() uatomic_inc(&preempt_count) |
4 | #define preempt_enable() uatomic_dec(&preempt_count) |