Re: [PATCH v3 1/3] ptp: introduce ptp auxiliary worker

2017-07-27 Thread Grygorii Strashko
On 07/27/2017 03:08 PM, Richard Cochran wrote: On Wed, Jul 26, 2017 at 05:11:36PM -0500, Grygorii Strashko wrote: @@ -217,6 +231,19 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, mutex_init(>pincfg_mux); init_waitqueue_head(>tsev_wq); + if

Re: [PATCH v3 1/3] ptp: introduce ptp auxiliary worker

2017-07-27 Thread Richard Cochran
On Wed, Jul 26, 2017 at 05:11:36PM -0500, Grygorii Strashko wrote: > @@ -217,6 +231,19 @@ struct ptp_clock *ptp_clock_register(struct > ptp_clock_info *info, > mutex_init(>pincfg_mux); > init_waitqueue_head(>tsev_wq); > > + if (ptp->info->do_aux_work) { > + char

[PATCH v3 1/3] ptp: introduce ptp auxiliary worker

2017-07-26 Thread Grygorii Strashko
Many PTP drivers required to perform some asynchronous or periodic work, like periodically handling PHC counter overflow or handle delayed timestamp for RX/TX network packets. In most of the cases, such work is implemented using workqueues. Unfortunately, Kernel workqueues might introduce