[PATCH 0/4] Move common CPU performance measuring code to fwts_cpu

Colin King colin.king at canonical.com
Tue Dec 11 12:04:02 UTC 2012


From: Colin Ian King <colin.king at canonical.com>

The CPU freq and C state tests contain some fairly common code to load and
consume 1 second of CPU time on a specified processor.  I've generalised this
code and moved it to the fwts library (in fwts_cpu.c) and re-jigged the CPU freq
and C state tests to use this new common helper function.

Colin Ian King (4):
  lib: cpu: add common CPU performance measuring code to fwts library
  lib: Makefile: Link in math library because we need sqrt()
  acpi: cstates: use new fwts_cpu_performance() helper function
  cpu: cpufreq: Use new fwts_cpu_performance() helper function

 src/acpi/cstates/cstates.c |  55 +++-------------
 src/cpu/cpufreq/cpufreq.c  | 157 +++++++++++++++++++++++----------------------
 src/lib/include/fwts_cpu.h |   3 +
 src/lib/src/Makefile.am    |   2 +-
 src/lib/src/fwts_cpu.c     |  98 ++++++++++++++++++++++++++--
 5 files changed, 186 insertions(+), 129 deletions(-)

-- 
1.8.0




More information about the fwts-devel mailing list