diff options
author | 2020-09-29 22:25:18 +0200 | |
---|---|---|
committer | 2020-09-29 14:02:54 -0700 | |
commit | c35a0824e88bf444c978080ef7698bcf73f44c20 (patch) | |
tree | ec81a04c38a8578b7a9bd98f39e6e017c30510d3 /tools/perf/scripts/python | |
parent | net: e100: Remove in_interrupt() usage and pointless GFP_ATOMIC allocation (diff) | |
download | wireguard-linux-c35a0824e88bf444c978080ef7698bcf73f44c20.tar.xz wireguard-linux-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 <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions