]> git.karo-electronics.de Git - linux-beck.git/commit
powercap / RAPL: handle missing MSRs
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Tue, 31 May 2016 20:41:29 +0000 (13:41 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Jun 2016 23:33:50 +0000 (01:33 +0200)
commite1399ba20eeef7ff07d58a15f403d718e0dbf94d
treefae110df58132fada5df51f981703a97ef266570
parente1a27e87a35cd6bb1087bd8f95a4be5a11e95f76
powercap / RAPL: handle missing MSRs

Some RAPL MSRs may not exist on some CPUs, we need to continue
the topology detection and enumerate what is available.

This patch handles the missing MSRs, then reports to the powercap
layer only the features available.

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