powercap / RAPL: abstract per cpu type functions
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Fri, 7 Nov 2014 17:29:25 +0000 (09:29 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Nov 2014 22:40:06 +0000 (23:40 +0100)
commit087e9cbab5022f8bb6dc9574ff5e320569903b80
tree76d90b7d57a6e8ef2f159f34903fc5f1a95c9194
parent206c5f60a3d902bc4b56dab2de3e88de5eb06108
powercap / RAPL: abstract per cpu type functions

RAPL implementations may vary slightly between Core and Atom CPUs. There are
also potential differences among generations of CPUs within the family.

This patch adds a per model structure to abstract the differences such that
variations can be handled cleanly.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl.c