Add CPU package C-state measurements to power_LoadTest

Modern Intel CPUs can put their whole package into a power-saving
C-state when all individual cores are idle. This patch reads the amount
of TSC ticks the package spends in each of those states from MSRs on
supporting platforms and converts them to percentage values which are
added to power_LoadTest's output.

BUG=chromium-os:35117
TEST=Run power_LoadTest on a lumpy or link. Check for
percent_cpupkg_C?_time values in its output.

Change-Id: Iaff4b09f8c373da56ec677eee36b83e6ad6d9ae9
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36370
Reviewed-by: Sameer Nanda <snanda@chromium.org>
3 files changed