perf/x86: Micro-optimize nhmex_rbox_get_constraint()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 19 Jun 2014 13:15:31 +0000 (15:15 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 5 Jul 2014 09:21:52 +0000 (11:21 +0200)
commit2172c1f5aa58310784f358ca20fdddfcdc2a0d7b
tree5984b036cd43e60fc78404b9e95995284997b6e4
parent985c8dcbe15ddd8a1b98dc6b9c6403cb5d7012ab
perf/x86: Micro-optimize nhmex_rbox_get_constraint()

Flipping the LSB doesn't require four lines of code. This shaves a few
bytes of the generated code, including a branch.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1403183731-15402-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c