diff options
author | Nam Cao <namcao@linutronix.de> | 2025-02-05 11:55:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-20 15:38:02 +0100 |
commit | a2d1afe65a152e8e581b48cebb1517e6bdf09d04 (patch) | |
tree | 76d159f0737f0c46e99146512c50dd113e303115 /tools/perf/scripts/python | |
parent | 1bd2aad57da95f7f2d2bb52f7ad15c0f4993a685 (diff) |
serial: xilinx_uartps: Use helper function hrtimer_update_function()
The field 'function' of struct hrtimer should not be changed directly, as
the write is lockless and a concurrent timer expiry might end up using the
wrong function pointer.
Switch to use hrtimer_update_function() which also performs runtime checks
that it is safe to modify the callback.
Signed-off-by: Nam Cao <namcao@linutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/af7823518fb060c6c97105a2513cfc61adbdf38f.1738746927.git.namcao@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions