Revision 55

View differences:

wattch/power.c
800 800
      onchip_parasitic_cc3 += ONCHIP_VREG_LOSS_HIGH;
801 801
  }
802 802
    
803
  total_parasitic_cc1 += onchip_parasitic_cc1 + offchip_parasitic_cc1;
804
  total_parasitic_cc2 += onchip_parasitic_cc2 + offchip_parasitic_cc2;
805
  total_parasitic_cc3 += onchip_parasitic_cc3 + offchip_parasitic_cc3;
806

  
807 803
  max_cycle_power_cc1 = MAX(max_cycle_power_cc1,current_total_cycle_power_cc1);
808 804
  max_cycle_power_cc2 = MAX(max_cycle_power_cc2,current_total_cycle_power_cc2);
809 805
  max_cycle_power_cc3 = MAX(max_cycle_power_cc3,current_total_cycle_power_cc3);
......
1236 1232
  stat_reg_double(sdb, "max_cycle_power_cc2", "maximum cycle power usage of cc2", &max_cycle_power_cc2, 0, NULL);
1237 1233

  
1238 1234
  stat_reg_double(sdb, "max_cycle_power_cc3", "maximum cycle power usage of cc3", &max_cycle_power_cc3, 0, NULL);
1239

  
1235
total_parasitic_cc3 = onchip_parasitic_cc3 + offchip_parasitic_cc3;
1240 1236
  stat_reg_double(sdb, "parasitic_power_cc3", "total parasitic power cc3", &total_parasitic_cc3, 0, NULL);
1241 1237
  stat_reg_double(sdb, "onchip parasitic_power_cc3", "onchip parasitic power cc3", &onchip_parasitic_cc3, 0, NULL);
1242 1238
  stat_reg_double(sdb, "offchip parasitic_power_cc3", "offchip parasitic power cc3", &offchip_parasitic_cc3, 0, NULL);

Also available in: Unified diff