diff options
author | Mario Limonciello <[email protected]> | 2023-11-27 23:36:52 -0600 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2023-12-17 22:33:55 +0100 |
commit | 120931db07b49252aba2073096b595482d71857c (patch) | |
tree | 8e36f94ece5cf7ac211dcf830c2ad66bbc33dcb0 /scripts/gdb/linux/stackdepot.py | |
parent | 1311a8f0d4b23f58bbababa13623aa40b8ad4e0c (diff) |
rtc: Add support for configuring the UIP timeout for RTC reads
The UIP timeout is hardcoded to 10ms for all RTC reads, but in some
contexts this might not be enough time. Add a timeout parameter to
mc146818_get_time() and mc146818_get_time_callback().
If UIP timeout is configured by caller to be >=100 ms and a call
takes this long, log a warning.
Make all callers use 10ms to ensure no functional changes.
Cc: <[email protected]> # 6.1.y
Fixes: ec5895c0f2d8 ("rtc: mc146818-lib: extract mc146818_avoid_UIP")
Signed-off-by: Mario Limonciello <[email protected]>
Tested-by: Mateusz Jończyk <[email protected]>
Reviewed-by: Mateusz Jończyk <[email protected]>
Acked-by: Mateusz Jończyk <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions