util: rework AMD cpu L3 cache affinity code.
This changes how the L3 cache affinity code works out the affinity masks. It works better with multi-CPU systems and should also be capable of handling big/little type situations if they appear in the future. It now iterates over all CPU cores, gets the core count for each CPU, and works out the L3_ID from the physical CPU ID, and the current cores L3 cache. It then tracks how many L3 caches it has seen and reallocate the affinity masks for each one. Closes: mesa/mesa#4496 Fixes: d8ea5099 ("util: completely rewrite and do AMD Zen L3 cache pinning correctly") Reviewed-by:Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!9782>