* [net-next] enetc: convert to schedule_work()
@ 2021-04-15 5:34 Yangbo Lu
2021-04-15 16:50 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Yangbo Lu @ 2021-04-15 5:34 UTC (permalink / raw)
To: netdev; +Cc: Yangbo Lu, David S . Miller, Claudiu Manoil, Jakub Kicinski
Convert system_wq queue_work() to schedule_work() which is
a wrapper around it, since the former is a rare construct.
Fixes: 7294380c5211 ("enetc: support PTP Sync packet one-step timestamping")
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
---
drivers/net/ethernet/freescale/enetc/enetc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/enetc/enetc.c b/drivers/net/ethernet/freescale/enetc/enetc.c
index 4a0adb0b8bd7..9a726085841d 100644
--- a/drivers/net/ethernet/freescale/enetc/enetc.c
+++ b/drivers/net/ethernet/freescale/enetc/enetc.c
@@ -552,7 +552,7 @@ static bool enetc_clean_tx_ring(struct enetc_bdr *tx_ring, int napi_budget)
* timestamping packet. And send one skb in
* tx_skbs queue if has.
*/
- queue_work(system_wq, &priv->tx_onestep_tstamp);
+ schedule_work(&priv->tx_onestep_tstamp);
} else if (unlikely(do_twostep_tstamp)) {
enetc_tstamp_tx(skb, tstamp);
do_twostep_tstamp = false;
base-commit: 3a1aa533f7f676aad68f8dbbbba10b9502903770
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next] enetc: convert to schedule_work()
2021-04-15 5:34 [net-next] enetc: convert to schedule_work() Yangbo Lu
@ 2021-04-15 16:50 ` Jakub Kicinski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2021-04-15 16:50 UTC (permalink / raw)
To: Yangbo Lu; +Cc: netdev, David S . Miller, Claudiu Manoil
On Thu, 15 Apr 2021 13:34:55 +0800 Yangbo Lu wrote:
> Convert system_wq queue_work() to schedule_work() which is
> a wrapper around it, since the former is a rare construct.
>
> Fixes: 7294380c5211 ("enetc: support PTP Sync packet one-step timestamping")
> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-15 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 5:34 [net-next] enetc: convert to schedule_work() Yangbo Lu
2021-04-15 16:50 ` Jakub Kicinski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.