[PATCH 6.12 115/136] x86/resctrl: Refactor resctrl_arch_rmid_read()