[PATCH v2 05/32] perf/x86/intel/cqm: encapsulate per-package RMIDs

2016-05-11 Thread David Carrillo-Cisneros
A raw RMID value is encapsulated in a Package RMID (prmid) structure that provides atomic updates and caches recent reads. Also, introduce __cqm_prmid_update, a helper function that reads occupancy of a RMID while keeping track of last_read_time to avoid multiple reads within a short period of

[PATCH v2 05/32] perf/x86/intel/cqm: encapsulate per-package RMIDs

2016-05-11 Thread David Carrillo-Cisneros
A raw RMID value is encapsulated in a Package RMID (prmid) structure that provides atomic updates and caches recent reads. Also, introduce __cqm_prmid_update, a helper function that reads occupancy of a RMID while keeping track of last_read_time to avoid multiple reads within a short period of