Re: [PATCH] sched/idle: Drop !! while calculating 'broadcast'

From: Viresh Kumar
Date: Tue Jun 24 2014 - 06:48:32 EST


On 24 June 2014 13:33, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> All true; but does it change anything? That is, does your compiler
> generate better code because of this?

Compilers are smart enough now a days and may not perform !!
at all I believe.. And so this patch is more about code clarity ..

I tried comparing results for ARM and got this with/without
this patch ..

$ size ../bexynos/kernel/sched/idle.o
text data bss dec hex filename
690 30 0 720 2d0 ../bexynos/kernel/sched/idle.o

Don't know if some architectures are using somewhat dumb
compilers which might result in better code with this patch :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/