diff options
| author | Osvaldo Banuelos <osvaldob@codeaurora.org> | 2017-01-11 17:30:03 -0800 |
|---|---|---|
| committer | Osvaldo Banuelos <osvaldob@codeaurora.org> | 2017-01-20 10:45:29 -0800 |
| commit | 6b6b86c9b9c87b999d0b17fc4ad8263d3ea213aa (patch) | |
| tree | 605481d803a30c73e7ac4fbfe1e1f7200b8fc337 /tools/perf/util/trace-event-scripting.c | |
| parent | 3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff) | |
clk: msm: clock-debug: acquire prepare lock during measurement
If the rate of the clock being measured changes at the same
time clock_debug_measure_get() is called, there can be a
miscalculation of the value of the divider between the
measurement circuitry and clock output. Acquiring the prepare
lock fixes the race since it prevents clock rate changes during
measurement.
CRs-Fixed: 1109789
Change-Id: I51050379a45a51c22109a06bc4758d767f361da1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
