aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-11-13 15:14:22 +0100
committerMiquel Raynal <[email protected]>2020-12-10 22:37:32 +0100
commit875330f87a057a7d9831cd6a9dabf39185d15a92 (patch)
tree195b8a58e08c91e91cd5c1a2e99a1abbbdf4a57f /scripts/bpf_helpers_doc.py
parent62e5c6c50992d1418eb9a6a8eaa51fa0b203b691 (diff)
mtd: onenand: Use mtd->oops_panic_write as condition
struct mtd_info has a flag oops_panic_write which is set when the write operation is issued via the panic_write() callback. That allows controller drivers to distinguish the panic write from a regular write. Replace the open coded 'in_interrupt() | oops_in_progress' checks with a check for that flag. in_interrupt() is an unrealiable indicator anyway as it covers all sorts of atomic contexts not only hard and soft interrupt service routines. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Cc: Tudor Ambarus <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Boris Brezillon <[email protected]> Cc: [email protected] Cc: Miquel Raynal <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions