diff options
| author | Daniel Thompson <[email protected]> | 2015-03-26 12:23:26 -0700 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-03-27 08:34:00 +0100 |
| commit | 1809bfa44e1019e397fabaa6f2349bb7237e57a4 (patch) | |
| tree | 3d2eba58ee4389f00e87b752599c9703f34b7150 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 9fee69a8c8070b38b558161a3f18bd5e2b664682 (diff) | |
timers, sched/clock: Avoid deadlock during read from NMI
Currently it is possible for an NMI (or FIQ on ARM) to come in
and read sched_clock() whilst update_sched_clock() has locked
the seqcount for writing. This results in the NMI handler
locking up when it calls raw_read_seqcount_begin().
This patch fixes the NMI safety issues by providing banked clock
data. This is a similar approach to the one used in Thomas
Gleixner's 4396e058c52e("timekeeping: Provide fast and NMI safe
access to CLOCK_MONOTONIC").
Suggested-by: Stephen Boyd <[email protected]>
Signed-off-by: Daniel Thompson <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Russell King <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions