summaryrefslogtreecommitdiff
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-10-21 07:16:08 -0600
committerJens Axboe <axboe@kernel.dk>2025-10-22 10:51:20 -0600
commit8ac9b0d33e5c0a995338ee5f25fe1b6ff7d97f65 (patch)
tree5313eb47ba5848ad203ad59307c05a499d075a7f /lib/timerqueue.c
parent4ec703ec0c384a2199808c4eb2e9037236285a8d (diff)
io_uring/sqpoll: switch away from getrusage() for CPU accounting
getrusage() does a lot more than what the SQPOLL accounting needs, the latter only cares about (and uses) the stime. Rather than do a full RUSAGE_SELF summation, just query the used stime instead. Cc: stable@vger.kernel.org Fixes: 3fcb9d17206e ("io_uring/sqpoll: statistics of the true utilization of sq threads") Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions