]> git.karo-electronics.de Git - linux-beck.git/commit
sh_eth: fix branch prediction in sh_eth_interrupt()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 29 Dec 2016 21:07:38 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2016 03:16:06 +0000 (22:16 -0500)
commit2344ef3c86a7fe41f97bf66c7936001b6132860b
treeb82e67cabc0c530a6f8decfafc5747fa51eee275
parente400b7977e7c014bc0c298b2d834311770a777ac
sh_eth: fix branch prediction in sh_eth_interrupt()

IIUC, likely()/unlikely() should apply to the whole *if* statement's
expression, not a part of it  -- fix such expression in  sh_eth_interrupt()
accordingly...

Fixes: 283e38db65e7 ("sh_eth: Fix serialisation of interrupt disable with interrupt & NAPI handlers")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c