libevent2: remove defunct download mirror
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.19 / 772-bgmac-activate-irqs-only-if-there-is-nothing-to-poll.patch
1 From fbd3b188fbaa861165a074c454d8f8dcf15343a0 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Mon, 8 Dec 2014 08:47:10 +0100
4 Subject: [PATCH 3/4] bgmac: activate irqs only if there is nothing to poll
5
6 IRQs should only get activated when there is nothing to poll in the
7 queue any more and to after every poll.
8
9 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 ---
11 drivers/net/ethernet/broadcom/bgmac.c | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14 --- a/drivers/net/ethernet/broadcom/bgmac.c
15 +++ b/drivers/net/ethernet/broadcom/bgmac.c
16 @@ -1167,10 +1167,10 @@ static int bgmac_poll(struct napi_struct
17 bgmac->int_status = 0;
18 }
19
20 - if (handled < weight)
21 + if (handled < weight) {
22 napi_complete(napi);
23 -
24 - bgmac_chip_intrs_on(bgmac);
25 + bgmac_chip_intrs_on(bgmac);
26 + }
27
28 return handled;
29 }