Re: [patch 1/6] preempt_lazy: remove redundant test_thread_flag() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 02 May 2014 13:12:46 +0200
Mike Galbraith <umgwanakikbuti@xxxxxxxxx> wrote:

> __preempt_count_dec_and_test() already does it.

Already does what? :-)

Hmm, do all archs check? Perhaps we need to also update
include/asm-generic/preempt.h?

-- Steve

> 
> Signed-off-by: Mike Galbraith <umgwanakikbuti@xxxxxxxxx>
> ---
>  include/linux/preempt.h |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> --- a/include/linux/preempt.h
> +++ b/include/linux/preempt.h
> @@ -126,8 +126,7 @@ do { \
>  #define preempt_enable_notrace() \
>  do { \
>  	barrier(); \
> -	if (unlikely(__preempt_count_dec_and_test() || \
> -				test_thread_flag(TIF_NEED_RESCHED_LAZY))) \
> +	if (unlikely(__preempt_count_dec_and_test())) \
>  		__preempt_schedule_context(); \
>  } while (0)
>  #else
> 
> 

--
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




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux