diff options
| author | Lin Feng <linf@wangsu.com> | 2025-02-27 06:34:12 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-02-27 11:40:56 +0300 |
| commit | d3a194d95fc8d53539d555119048694a40833844 (patch) | |
| tree | 68957e79ddd0719d2b6f5a1a14d314e9fe05a32b /tools/perf/scripts/python/libxed.py | |
| parent | 12851bd921d429c60578b90916fc220b60757c34 (diff) | |
| download | linux-d3a194d95fc8d53539d555119048694a40833844.tar.xz | |
epoll: simplify ep_busy_loop by removing always 0 argument
Commit 00b27634bc471("epoll: replace gotos with a proper loop") refactored
ep_poll and always feeds ep_busy_loop with a time_out value of 0, nonblock
mode for ep_busy_loop has sunk since, IOW nonblock mode checking has been
taken over by ep_poll itself, codes snipped:
static int ep_poll(struct eventpoll *ep...
{
...
if (timed_out)
return 0;
eavail = ep_busy_loop(ep, timed_out);
...
}
Given this fact codes can be simplified a bit for ep_busy_loop.
Signed-off-by: Lin Feng <linf@wangsu.com>
Link: https://lore.kernel.org/r/20250227033412.5873-1-linf@wangsu.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
