OpenCloudOS-Kernel/drivers/net/ethernet/natsemi
Thomas Gleixner 606dbf8d5d net: natsemi: Replace in_interrupt() usage.
The usage of in_interrupt() in drivers is phased out and Linus clearly
requested that code which changes behaviour depending on context should
either be seperated or the context be conveyed in an argument passed by the
caller, which usually knows the context.

sonic_quiesce() uses 'in_interrupt() || irqs_disabled()' to chose either
udelay() or usleep_range() in the wait loop.

In all callchains leading to it the context is well defined and known.

Add a 'may_sleep' argument and pass it through the various callchains
leading to this function.

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>
2020-09-29 14:02:54 -07:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile ethernet: natsemi: correct spelling 2018-03-06 11:14:08 -05:00
jazzsonic.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
macsonic.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
natsemi.c natsemi: switch from 'pci_' to 'dma_' API 2020-09-13 14:15:15 -07:00
ns83820.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
sonic.c net: natsemi: Replace in_interrupt() usage. 2020-09-29 14:02:54 -07:00
sonic.h net: natsemi: Replace in_interrupt() usage. 2020-09-29 14:02:54 -07:00
xtsonic.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00