diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-08-24 08:50:31 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-09-06 08:56:45 +0300 |
commit | 9ba33f6145728c09c8e4578ffa8e94aef47b4e68 (patch) | |
tree | a9f5957cfca3b68a78afa7aec38f4e29811ed01a /rust/helpers/task.c | |
parent | f388412f707e98735e44341447263ab3e25e7043 (diff) | |
download | linux-9ba33f6145728c09c8e4578ffa8e94aef47b4e68.tar.xz |
Input: zforce_ts - ensure that pm_stay_awake() and pm_relax() are balanced
There is a small chance that ts->suspending flag may change while the
interrupt handler is running. To make sure call to pm_relax() is not
skipped on accident use a temporary to hold the original value at the
beginning of interrupt. Use READ_ONCE() so that the value is actually
fetched at the right time.
Tested-by: Andreas Kemnade <andreas@kemnade.info> # Tolino Shine2HD
Link: https://lore.kernel.org/r/20240824055047.1706392-8-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions