diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ce93768a3312..b4f6bf982921 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2795,10 +2795,8 @@ static inline bool __must_check current_set_polling_and_test(void) | |||
2795 | /* | 2795 | /* |
2796 | * Polling state must be visible before we test NEED_RESCHED, | 2796 | * Polling state must be visible before we test NEED_RESCHED, |
2797 | * paired by resched_task() | 2797 | * paired by resched_task() |
2798 | * | ||
2799 | * XXX: assumes set/clear bit are identical barrier wise. | ||
2800 | */ | 2798 | */ |
2801 | smp_mb__after_clear_bit(); | 2799 | smp_mb__after_atomic(); |
2802 | 2800 | ||
2803 | return unlikely(tif_need_resched()); | 2801 | return unlikely(tif_need_resched()); |
2804 | } | 2802 | } |
@@ -2816,7 +2814,7 @@ static inline bool __must_check current_clr_polling_and_test(void) | |||
2816 | * Polling state must be visible before we test NEED_RESCHED, | 2814 | * Polling state must be visible before we test NEED_RESCHED, |
2817 | * paired by resched_task() | 2815 | * paired by resched_task() |
2818 | */ | 2816 | */ |
2819 | smp_mb__after_clear_bit(); | 2817 | smp_mb__after_atomic(); |
2820 | 2818 | ||
2821 | return unlikely(tif_need_resched()); | 2819 | return unlikely(tif_need_resched()); |
2822 | } | 2820 | } |