[PATCH 6.17 150/159] x86/resctrl: Refactor resctrl_arch_rmid_read()