diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-09-04 21:17:06 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-10-04 00:58:14 -0700 |
| commit | 0e45a09a1da0872786885c505467aab8fb29b5b4 (patch) | |
| tree | 97c6f63d7599afbea6bef22787e2b258a34f8ec7 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | Input: sparcspkr - use guard notation when acquiring spinlock (diff) | |
| download | linux-0e45a09a1da0872786885c505467aab8fb29b5b4.tar.gz linux-0e45a09a1da0872786885c505467aab8fb29b5b4.zip | |
Input: serio - define serio_pause_rx guard to pause and resume serio ports
serio_pause_rx() and serio_continue_rx() are usually used together to
temporarily stop receiving interrupts/data for a given serio port.
Define "serio_pause_rx" guard for this so that the port is always
resumed once critical section is over.
Example:
scoped_guard(serio_pause_rx, elo->serio) {
elo->expected_packet = toupper(packet[0]);
init_completion(&elo->cmd_done);
}
Link: https://lore.kernel.org/r/20240905041732.2034348-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
