]> git.baikalelectronics.ru Git - kernel.git/commit
powercap / RAPL: further relax energy counter checks
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Tue, 29 Apr 2014 22:33:06 +0000 (15:33 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2014 23:32:20 +0000 (01:32 +0200)
commit763d5acb2a3aeba164770d8072769d6c26cc71f1
tree940a8627bee078e7bf158c9128db9acd5156e15a
parenta7563090e73b40f192e8d59084ab7d606cee6737
powercap / RAPL: further relax energy counter checks

Energy counters may roll slowly for some RAPL domains, checking all
of them can be time consuming and takes unpredictable amount of time.
Therefore, we relax the sanity check by only checking availability of the
MSRs and non-zero value of the energy status counters. It has been shown
sufficient for all the platforms tested to filter out inactive domains.

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