perf_counter: Fix dynamic irq_period logging
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sat, 23 May 2009 16:28:55 +0000 (18:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 23 May 2009 17:37:44 +0000 (19:37 +0200)
commite220d2dcb944c5c488b6855d15ec66d76900514f
treebbaa8ead4276d59d6d73d49a28fd6e1e1ed3259a
parentc6eb13847ba081552d2af644219bddeff7110caf
perf_counter: Fix dynamic irq_period logging

We call perf_adjust_freq() from perf_counter_task_tick() which
is is called under the rq->lock causing lock recursion.
However, it's no longer required to be called under the
rq->lock, so remove it from under it.

Also, fix up some related comments.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <20090523163012.476197912@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c
kernel/sched.c