perf_event: x86: Optimize constraint weight computation
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 22 Jan 2010 15:32:17 +0000 (16:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 Jan 2010 08:01:41 +0000 (09:01 +0100)
commit272d30be622c9c6cbd514b1211ff359292001baa
tree7c792dfbac3a18187c58ba292ecb3af819ef330a
parent63b146490befc027a7e0923e333269e68b20d380
perf_event: x86: Optimize constraint weight computation

Add a weight member to the constraint structure and avoid recomputing the
weight at runtime.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <20100122155535.963944926@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c