mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 11:51:27 +00:00
r8169: avoid a useless work scheduling.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Suggested-by: Michał Mirosław <mirqus@gmail.com> Cc: Hayes Wang <hayeswang@realtek.com>
This commit is contained in:
parent
6c4a70c5f2
commit
934714d088
@ -5843,7 +5843,8 @@ static void rtl_slow_event_work(struct rtl8169_private *tp)
|
|||||||
/* Work around for rx fifo overflow */
|
/* Work around for rx fifo overflow */
|
||||||
case RTL_GIGA_MAC_VER_11:
|
case RTL_GIGA_MAC_VER_11:
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
rtl_schedule_task(tp, RTL_FLAG_TASK_RESET_PENDING);
|
/* XXX - Hack alert. See rtl_task(). */
|
||||||
|
set_bit(RTL_FLAG_TASK_RESET_PENDING, tp->wk.flags);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -5868,6 +5869,7 @@ static void rtl_task(struct work_struct *work)
|
|||||||
int bitnr;
|
int bitnr;
|
||||||
void (*action)(struct rtl8169_private *);
|
void (*action)(struct rtl8169_private *);
|
||||||
} rtl_work[] = {
|
} rtl_work[] = {
|
||||||
|
/* XXX - keep rtl_slow_event_work() as first element. */
|
||||||
{ RTL_FLAG_TASK_SLOW_PENDING, rtl_slow_event_work },
|
{ RTL_FLAG_TASK_SLOW_PENDING, rtl_slow_event_work },
|
||||||
{ RTL_FLAG_TASK_RESET_PENDING, rtl_reset_work },
|
{ RTL_FLAG_TASK_RESET_PENDING, rtl_reset_work },
|
||||||
{ RTL_FLAG_TASK_PHY_PENDING, rtl_phy_work }
|
{ RTL_FLAG_TASK_PHY_PENDING, rtl_phy_work }
|
||||||
|
Loading…
Reference in New Issue
Block a user