perf_counter: fix hrtimer sampling
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 13 Mar 2009 15:43:47 +0000 (16:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Apr 2009 07:29:46 +0000 (09:29 +0200)
commit039fc91e064b81c2820ff16c304be5aba35fd126
tree2167c0dfeac53bb52dfb078f23de4896249b4118
parent592903cdcbf606a838056bae6d03fc557806c914
perf_counter: fix hrtimer sampling

Impact: fix deadlock with perfstat

Fix for the perfstat fubar..

We cannot unconditionally call hrtimer_cancel() without ever having done
hrtimer_init() on the thing.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Orig-LKML-Reference: <1236959027.22447.149.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c