diff options
| author | Eric Dumazet <[email protected]> | 2024-08-27 11:49:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-08-29 00:53:13 +0000 |
| commit | 0870b0d8b393dde53106678a1e2cec9dfa52f9b7 (patch) | |
| tree | 0742294b9f38e24f2ad958ef29132589d48d9250 /rust/helpers/security.c | |
| parent | Merge tag 'wireless-2024-08-28' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-0870b0d8b393dde53106678a1e2cec9dfa52f9b7.tar.gz kernel-0870b0d8b393dde53106678a1e2cec9dfa52f9b7.zip | |
net: busy-poll: use ktime_get_ns() instead of local_clock()
Typically, busy-polling durations are below 100 usec.
When/if the busy-poller thread migrates to another cpu,
local_clock() can be off by +/-2msec or more for small
values of HZ, depending on the platform.
Use ktimer_get_ns() to ensure deterministic behavior,
which is the whole point of busy-polling.
Fixes: 060212928670 ("net: add low latency socket poll")
Fixes: 9a3c71aa8024 ("net: convert low latency sockets to sched_clock()")
Fixes: 37089834528b ("sched, net: Fixup busy_loop_us_clock()")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Mina Almasry <[email protected]>
Cc: Willem de Bruijn <[email protected]>
Reviewed-by: Joe Damato <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions
