aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorAndrĂ© Draszik <[email protected]>2025-03-25 09:46:07 +0000
committerKrzysztof Kozlowski <[email protected]>2025-04-07 06:21:56 +0000
commitd2098981eb7b7d20edd294a8431908f8a0d2f9c0 (patch)
treeb496d06855ce6efecd5822a91cdaf3d19782e2e4 /scripts/gcc-plugins/randomize_layout_plugin.c
parentLinux 6.15-rc1 (diff)
downloadkernel-d2098981eb7b7d20edd294a8431908f8a0d2f9c0.tar.gz
kernel-d2098981eb7b7d20edd294a8431908f8a0d2f9c0.zip
firmware: exynos-acpm: use ktime APIs for timeout detection
acpm_dequeue_by_polling() uses a loop counter and assumes that each iteration of the loop takes 20us. It may take longer, though, because usleep_range() may sleep a different amount. Switch to using ktime_get() / ktime_before() to detect the timeout condition more reliably. This change also makes the code easier to follow and it allows us to adjust the sleep if necessary, without having to adjust the loop counter exit condition. Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: AndrĂ© Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions