diff options
| author | Yury Norov [NVIDIA] <[email protected]> | 2025-05-15 16:58:34 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-05-15 18:53:26 +0000 |
| commit | 94f7531430285b4ec600693f7222c2ca29bd7472 (patch) | |
| tree | 120a2f9538d94ed97a3742e70f382f3f3c09aa93 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | cpumask: Add cpumask_{first,next}_andnot() API (diff) | |
| download | kernel-94f7531430285b4ec600693f7222c2ca29bd7472.tar.gz kernel-94f7531430285b4ec600693f7222c2ca29bd7472.zip | |
x86/resctrl: Optimize cpumask_any_housekeeping()
With the lack of cpumask_any_andnot_but(), cpumask_any_housekeeping()
has to abuse cpumask_nth() functions.
Update cpumask_any_housekeeping() to use the new cpumask_any_but()
and cpumask_any_andnot_but(). These two functions understand
RESCTRL_PICK_ANY_CPU, which simplifies cpumask_any_housekeeping()
significantly.
Signed-off-by: Yury Norov [NVIDIA] <[email protected]>
Signed-off-by: James Morse <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: James Morse <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Reviewed-by: Shaopeng Tan <[email protected]>
Reviewed-by: Fenghua Yu <[email protected]>
Tested-by: Fenghua Yu <[email protected]>
Tested-by: James Morse <[email protected]>
Tested-by: Shaopeng Tan <[email protected]>
Tested-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
