x86/intel_rdt/mba_sc: Prepare for feedback loop
[linux-2.6-block.git] / arch / x86 / kernel / cpu / intel_rdt.h
index 91cc31087e8abf05508339d88722a871dcb5f752..66a0ba37a8a3a5460be711450635267448c5a399 100644 (file)
@@ -180,10 +180,20 @@ struct rftype {
  * struct mbm_state - status for each MBM counter in each domain
  * @chunks:    Total data moved (multiply by rdt_group.mon_scale to get bytes)
  * @prev_msr   Value of IA32_QM_CTR for this RMID last time we read it
+ * @chunks_bw  Total local data moved. Used for bandwidth calculation
+ * @prev_bw_msr:Value of previous IA32_QM_CTR for bandwidth counting
+ * @prev_bw    The most recent bandwidth in MBps
+ * @delta_bw   Difference between the current and previous bandwidth
+ * @delta_comp Indicates whether to compute the delta_bw
  */
 struct mbm_state {
        u64     chunks;
        u64     prev_msr;
+       u64     chunks_bw;
+       u64     prev_bw_msr;
+       u32     prev_bw;
+       u32     delta_bw;
+       bool    delta_comp;
 };
 
 /**