diff options
| author | Petr Machata <[email protected]> | 2019-06-30 09:04:55 +0300 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-07-01 18:58:34 -0700 |
| commit | 89e602ee6e82626cc74f6615950d3e5a26d7bdc9 (patch) | |
| tree | a4ed2587b73483219e019dfcbec49b64eedfc950 /tools/perf/scripts/python/bin | |
| parent | 810256cec105b3b1ff977f0cd47dac1a1a9a184b (diff) | |
mlxsw: spectrum: PTP: Disable BH when working with PHC
Up until now, the PTP hardware clock code was only invoked in the process
context (SYS_clock_adjtime -> do_clock_adjtime -> k_clock::clock_adj ->
pc_clock_adjtime -> posix_clock_operations::clock_adjtime ->
ptp_clock_info::adjtime -> mlxsw_spectrum).
In order to enable HW timestamping, which is tied into trap handling, it
will be necessary to take the clock lock from the PCI queue handler
tasklets as well.
Therefore use the _bh variants when handling the clock lock. Incidentally,
Documentation/ptp/ptp.txt recommends _irqsave variants, but that's
unnecessarily strong for our needs.
Signed-off-by: Petr Machata <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions