sched: Add a new function to compare if two cpus have the same capacity
authorQais Yousef <qyousef@layalina.io>
Fri, 23 Feb 2024 15:57:48 +0000 (15:57 +0000)
committerJens Axboe <axboe@kernel.dk>
Sat, 24 Feb 2024 19:48:01 +0000 (12:48 -0700)
commitb361c9027b4e4159e7bcca4eb64fd26507c19994
tree7fc9b8f0e93589daec94a28825323acae5aeb688
parent8a08c5fd89b447a7de7eb293a7a274c46b932ba2
sched: Add a new function to compare if two cpus have the same capacity

The new helper function is needed to help blk-mq check if it needs to
dispatch the softirq on another CPU to match the performance level the
IO requester is running at. This is important on HMP systems where not
all CPUs have the same compute capacity.

Signed-off-by: Qais Yousef <qyousef@layalina.io>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240223155749.2958009-2-qyousef@layalina.io
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/sched/topology.h
kernel/sched/core.c