[PATCH 6.12.y 1/2] x86/resctrl: Refactor resctrl_arch_rmid_read()