* Mike Galbraith | 2014-05-06 07:33:51 [+0200]: >> Hmm, do all archs check? Perhaps we need to also update >> include/asm-generic/preempt.h? > >Per cpu preempt_count is x86, and tif_need_resched() handles laziness, >so all should be well. Did I just manage to overlook the obvious for >the second time? In include/asm-generic/preempt.h we have | static __always_inline bool __preempt_count_dec_and_test(void) | { | return !--*preempt_count_ptr() && tif_need_resched(); | } and tif_need_resched() is in include/linux/thread_info.h | #ifdef CONFIG_PREEMPT_LAZY | #define tif_need_resched() (test_thread_flag(TIF_NEED_RESCHED) || \ | test_thread_flag(TIF_NEED_RESCHED_LAZY)) | #else | #define tif_need_resched() (test_thread_flag(TIF_NEED_RESCHED)) | #endif So I guess we are fine. >-Mike Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html