提交 43f159c6 编写于 作者: H Hauke Mehrtens 提交者: David S. Miller

bgmac: activate irqs only if there is nothing to poll

IRQs should only get activated when there is nothing to poll in the
queue any more and to after every poll.
Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6216642f
...@@ -1167,10 +1167,10 @@ static int bgmac_poll(struct napi_struct *napi, int weight) ...@@ -1167,10 +1167,10 @@ static int bgmac_poll(struct napi_struct *napi, int weight)
bgmac->int_status = 0; bgmac->int_status = 0;
} }
if (handled < weight) if (handled < weight) {
napi_complete(napi); napi_complete(napi);
bgmac_chip_intrs_on(bgmac); bgmac_chip_intrs_on(bgmac);
}
return handled; return handled;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册