diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-09-29 22:25:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-29 23:02:54 +0200 |
commit | d08749ea3fd5a6a7713fdb4d52501e484eff29c4 (patch) | |
tree | cb01c63fc4a4c757856c32689ec6ba653f4a44e4 /drivers/net/ethernet/sun/sunqe.h | |
parent | net: sfc: Use GFP_KERNEL in efx_ef10_try_update_nic_stats() (diff) | |
download | linux-d08749ea3fd5a6a7713fdb4d52501e484eff29c4.tar.xz linux-d08749ea3fd5a6a7713fdb4d52501e484eff29c4.zip |
net: sunbmac: Replace in_interrupt() usage
bigmac_init_rings() has an argument signaling if it is called from the
interrupt handler. This is used to decide between GFP_KERNEL and GFP_ATOMIC
for memory allocations.
But it also checks in_interrupt() to handle invocations which come from the
timer callback bigmac_timer() via bigmac_hw_init(), which is invoked with
'in_irq = 0'. While the timer callback is clearly not in hard interrupt
context it is still not sleepable context.
Rename the argument to `non_blocking' and set it to true if invoked from
the timer callback or the interrupt handler which allows to remove the
in_interrupt() check and makes the code consistent.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunqe.h')
0 files changed, 0 insertions, 0 deletions