p_state_end
pwr = p_state_end(tchart, cpu, timestamp);
pwr = p_state_end(tchart, cpu, tchart->last_time);