commit | c8ff28526fcae29439aefe197ba4d7dcd93c9f0f | [log] [tgz] |
---|---|---|
author | Steven Rostedt <rostedt@goodmis.org> | Mon Aug 19 17:33:26 2013 -0400 |
committer | Clark Williams <clark.williams@gmail.com> | Mon Aug 19 20:02:17 2013 -0500 |
tree | 2d5d7cd35e46cb6f661c150f504a9f9f986b64c1 | |
parent | 4d6701f63bbc54ff30d6b937f66782667670c159 [diff] |
hwlat-detector: Use trace_clock_local if available As ktime_get() calls into the timing code which does a read_seq(), it may be affected by other CPUS that touch that lock. To remove this dependency, use the trace_clock_local() which is already exported for module use. If CONFIG_TRACING is enabled, use that as the clock, otherwise use ktime_get(). Signed-off-by: Steven Rostedt <srostedt@redhat.com>