]> git.karo-electronics.de Git - linux-beck.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)
commit9d31c676c6019df0c078950a0ddca87da4706b14
tree940a8627bee078e7bf158c9128db9acd5156e15a
parentd1db0eea852497762cab43b905b879dfcd3b8987
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