]> 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)
commitfa90e8cc5528efd880f70286c0c16c132462875c
tree5a8edec5ce8eeb87738109c4bca5fa833dfba124
parent62f76fe329847897ac8abbe9f9b7c26392db224d
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