]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: introduce ptp_cancel_worker_sync
authorVladimir Oltean <olteanv@gmail.com>
Fri, 27 Dec 2019 13:02:28 +0000 (15:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Dec 2019 04:31:40 +0000 (20:31 -0800)
commit7a611d679184fa33381f87c712ff6c389d0b3ef0
tree5a8edec5ce8eeb87738109c4bca5fa833dfba124
parenta1ecde7456ebc67ed5dd511522a2327e86362f05
ptp: introduce ptp_cancel_worker_sync

In order to effectively use the PTP kernel thread for tasks such as
timestamping packets, allow the user control over stopping it, which is
needed e.g. when the timestamping queues must be drained.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_clock.c
include/linux/ptp_clock_kernel.h