Revision 56

View differences:

wattch/power.c
1232 1232
  stat_reg_double(sdb, "max_cycle_power_cc2", "maximum cycle power usage of cc2", &max_cycle_power_cc2, 0, NULL);
1233 1233

  
1234 1234
  stat_reg_double(sdb, "max_cycle_power_cc3", "maximum cycle power usage of cc3", &max_cycle_power_cc3, 0, NULL);
1235
total_parasitic_cc3 = onchip_parasitic_cc3 + offchip_parasitic_cc3;
1236
  stat_reg_double(sdb, "parasitic_power_cc3", "total parasitic power cc3", &total_parasitic_cc3, 0, NULL);
1235
  stat_reg_formula(sdb, "parasitic_power_cc3", "total parasitic power cc3", "(onchip_parasitic_cc3 + offchip_parasitic_cc3)", NULL);
1237 1236
  stat_reg_double(sdb, "onchip parasitic_power_cc3", "onchip parasitic power cc3", &onchip_parasitic_cc3, 0, NULL);
1238 1237
  stat_reg_double(sdb, "offchip parasitic_power_cc3", "offchip parasitic power cc3", &offchip_parasitic_cc3, 0, NULL);
1239 1238
  stat_reg_double(sdb, "min amperage", "min amperage", &min_amp, 0, NULL);

Also available in: Unified diff