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