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 25f54c79f757..010cde3b44cb 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2782,10 +2782,8 @@ static inline bool __must_check current_set_polling_and_test(void) | |||
2782 | /* | 2782 | /* |
2783 | * Polling state must be visible before we test NEED_RESCHED, | 2783 | * Polling state must be visible before we test NEED_RESCHED, |
2784 | * paired by resched_task() | 2784 | * paired by resched_task() |
2785 | * | ||
2786 | * XXX: assumes set/clear bit are identical barrier wise. | ||
2787 | */ | 2785 | */ |
2788 | smp_mb__after_clear_bit(); | 2786 | smp_mb__after_atomic(); |
2789 | 2787 | ||
2790 | return unlikely(tif_need_resched()); | 2788 | return unlikely(tif_need_resched()); |
2791 | } | 2789 | } |
@@ -2803,7 +2801,7 @@ static inline bool __must_check current_clr_polling_and_test(void) | |||
2803 | * Polling state must be visible before we test NEED_RESCHED, | 2801 | * Polling state must be visible before we test NEED_RESCHED, |
2804 | * paired by resched_task() | 2802 | * paired by resched_task() |
2805 | */ | 2803 | */ |
2806 | smp_mb__after_clear_bit(); | 2804 | smp_mb__after_atomic(); |
2807 | 2805 | ||
2808 | return unlikely(tif_need_resched()); | 2806 | return unlikely(tif_need_resched()); |
2809 | } | 2807 | } |