Skip to content

Commit

Permalink
powercap: intel_rapl_tpmi: Enable PMU support
Browse files Browse the repository at this point in the history
Enable RAPL PMU support for TPMI RAPL driver.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Zhang Rui authored and Rafael J. Wysocki committed Apr 30, 2024
1 parent 575024a commit 963a9ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/powercap/intel_rapl_tpmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit 963a9ad

Please sign in to comment.