Commit 963a9ad3 authored by Zhang Rui's avatar Zhang Rui Committed by Rafael J. Wysocki

powercap: intel_rapl_tpmi: Enable PMU support

Enable RAPL PMU support for TPMI RAPL driver.
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 575024a8
...@@ -302,6 +302,8 @@ static int intel_rapl_tpmi_probe(struct auxiliary_device *auxdev, ...@@ -302,6 +302,8 @@ static int intel_rapl_tpmi_probe(struct auxiliary_device *auxdev,
goto err; goto err;
} }
rapl_package_add_pmu(trp->rp);
auxiliary_set_drvdata(auxdev, trp); auxiliary_set_drvdata(auxdev, trp);
return 0; return 0;
...@@ -314,6 +316,7 @@ static void intel_rapl_tpmi_remove(struct auxiliary_device *auxdev) ...@@ -314,6 +316,7 @@ static void intel_rapl_tpmi_remove(struct auxiliary_device *auxdev)
{ {
struct tpmi_rapl_package *trp = auxiliary_get_drvdata(auxdev); struct tpmi_rapl_package *trp = auxiliary_get_drvdata(auxdev);
rapl_package_remove_pmu(trp->rp);
rapl_remove_package(trp->rp); rapl_remove_package(trp->rp);
trp_release(trp); trp_release(trp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment