perf/x86: Simplify the x86_schedule_events() logic
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 May 2015 08:57:43 +0000 (10:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 07:17:45 +0000 (09:17 +0200)
commit8736e548db0f48244132bc36331496494625bbaf
tree63c960cd72bf2a92daf86cbe1c7589ee0d2a3662
parent43ef205bded025432f5eeeb3503c11fe5cd1913e
perf/x86: Simplify the x86_schedule_events() logic

!x && y == ! (x || !y)

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c