mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
powercap: intel_rapl_tpmi: Enable PMU support
Enable RAPL PMU support for TPMI RAPL driver. Signed-off-by: Zhang Rui <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
1 parent
575024a8aa
commit
963a9ad3c5
1 file changed
+3
@@ -302,6 +302,8 @@ static int intel_rapl_tpmi_probe(struct auxiliary_device *auxdev,
|
||||
goto err;
|
||||
}
|
||||
|
||||
rapl_package_add_pmu(trp->rp);
|
||||
|
||||
auxiliary_set_drvdata(auxdev, trp);
|
||||
|
||||
return 0;
|
||||
@@ -314,6 +316,7 @@ static void intel_rapl_tpmi_remove(struct auxiliary_device *auxdev)
|
||||
{
|
||||
struct tpmi_rapl_package *trp = auxiliary_get_drvdata(auxdev);
|
||||
|
||||
rapl_package_remove_pmu(trp->rp);
|
||||
rapl_remove_package(trp->rp);
|
||||
trp_release(trp);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user