]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Fix interrupt handler timing harness
authorStephane Eranian <eranian@google.com>
Thu, 4 Jul 2013 22:30:11 +0000 (00:30 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 5 Jul 2013 06:54:43 +0000 (08:54 +0200)
commit471e563168c49c0ecd7b9a73cb910cb6b1d26ed5
treebea762940dbb32ec98e99de896ad3a6d450cc025
parent9e183ccc7c9ce0c04b89ee48fa31b216a8676598
perf: Fix interrupt handler timing harness

This patch fixes a serious bug in:

  3aed6c0f48a4 perf: Drop sample rate when sampling is too slow

There was an misunderstanding on the API of the do_div()
macro. It returns the remainder of the division and this
was not what the function expected leading to disabling the
interrupt latency watchdog.

This patch also remove a duplicate assignment in
perf_sample_event_took().

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: peterz@infradead.org
Cc: dave.hansen@linux.intel.com
Cc: ak@linux.intel.com
Cc: jolsa@redhat.com
Link: http://lkml.kernel.org/r/20130704223010.GA30625@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c