powercap / RAPL: disable the 2nd power limit properly
authorSeiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
Wed, 19 Aug 2015 05:26:03 +0000 (14:26 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Aug 2015 23:46:40 +0000 (01:46 +0200)
commit5021282cc483d4126c1704942adb74806f7d15d6
treeff1238b0000d8acefbe0a4ccca6efd1ef174e5d7
parent4e0bec9e833a6884dc2e242e45e0ebd99f46624e
powercap / RAPL: disable the 2nd power limit properly

Let rapl_unregister_powercap() disable the second power limit
only if it exists.
Intel64 SDM Vol.3 14.9 says that the package domain has it
but neither the power plane domain nor the DRAM domain has it.

Signed-off-by: Seiichi Ikarashi <s.ikarashi@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/powercap/intel_rapl.c