aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2020-09-29 20:25:18 +0000
committerDavid S. Miller <[email protected]>2020-09-29 21:02:54 +0000
commitc35a0824e88bf444c978080ef7698bcf73f44c20 (patch)
treeec81a04c38a8578b7a9bd98f39e6e017c30510d3 /drivers/net/ethernet/intel/igc/igc_main.c
parentnet: e100: Remove in_interrupt() usage and pointless GFP_ATOMIC allocation (diff)
downloadkernel-c35a0824e88bf444c978080ef7698bcf73f44c20.tar.gz
kernel-c35a0824e88bf444c978080ef7698bcf73f44c20.zip
net: fec_mpc52xx: 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. mpc52xx_fec_stop() uses in_interrupt() to check if it is safe to sleep. All callers run in well defined contexts. Pass an argument from the callers indicating whether it is safe to sleep. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions