X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flinux%2Fsched.h;h=010cde3b44cb025fac86df9fdd150c9052d6f05a;hb=4e857c58efeb99393cba5a5d0d8ec7117183137c;hp=25f54c79f75772a9f133c585e17a2d8e4a59e8ac;hpb=1b15611e1c30b37abe393d411c316cd659920bf5;p=deliverable%2Flinux.git 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) /* * Polling state must be visible before we test NEED_RESCHED, * paired by resched_task() - * - * XXX: assumes set/clear bit are identical barrier wise. */ - smp_mb__after_clear_bit(); + smp_mb__after_atomic(); return unlikely(tif_need_resched()); } @@ -2803,7 +2801,7 @@ static inline bool __must_check current_clr_polling_and_test(void) * Polling state must be visible before we test NEED_RESCHED, * paired by resched_task() */ - smp_mb__after_clear_bit(); + smp_mb__after_atomic(); return unlikely(tif_need_resched()); }