X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Fpreempt.h;h=b2676a16cfbe2448f39d6ee975f96785a1bb581c;hb=da7142e2ed735e1c1bef5a757dc55de35c65fbd6;hp=448dfd0b2ea6f8f2cd9c21205756b6f576235977;hpb=1dc0fffc48af94513e621f95dff730ed4f7317ec;p=mirror_ubuntu-artful-kernel.git diff --git a/include/linux/preempt.h b/include/linux/preempt.h index 448dfd0b2ea6..b2676a16cfbe 100644 --- a/include/linux/preempt.h +++ b/include/linux/preempt.h @@ -126,8 +126,7 @@ * Check whether we were atomic before we did preempt_disable(): * (used by the scheduler) */ -#define in_atomic_preempt_off() \ - ((preempt_count() & ~PREEMPT_ACTIVE) != PREEMPT_DISABLE_OFFSET) +#define in_atomic_preempt_off() (preempt_count() != PREEMPT_DISABLE_OFFSET) #if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER) extern void preempt_count_add(int val);