diff options
| author | Dmitry Torokhov <[email protected]> | 2024-05-30 11:07:19 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2024-06-06 14:35:01 -0700 |
| commit | c76494768761aef7630e7e0db820ba7b375964da (patch) | |
| tree | 392ca942ec8ee4f1cd3389b4e967a87d80ec7077 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 (diff) | |
linux/interrupt.h: allow "guard" notation to disable and reenable IRQ
Drivers often need to first disable an interrupt, carry out some
action, and then reenable the interrupt. Introduce support for the
"guard" notation for this so that the following is possible:
...
scoped_cond_guard(mutex_intr, return -EINTR, &data->sysfs_mutex) {
guard(disable_irq)(&client->irq);
error = elan_acquire_baseline(data);
if (error)
return error;
}
...
Reviewed-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions