From: Zhang Rui <rui.zhang@intel.com>
To: rafael.j.wysocki@intel.com
Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
srinivas.pandruvada@intel.com
Subject: [PATCH V2 3/3] powercap: intel_rapl_tpmi: Enable PMU support
Date: Mon, 8 Apr 2024 11:51:41 +0800 [thread overview]
Message-ID: <20240408035141.248644-4-rui.zhang@intel.com> (raw)
In-Reply-To: <20240408035141.248644-1-rui.zhang@intel.com>
Enable RAPL PMU support for TPMI RAPL driver.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/powercap/intel_rapl_tpmi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/powercap/intel_rapl_tpmi.c b/drivers/powercap/intel_rapl_tpmi.c
index f6b7f085977c..947544e4d229 100644
--- a/drivers/powercap/intel_rapl_tpmi.c
+++ b/drivers/powercap/intel_rapl_tpmi.c
@@ -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);
}
--
2.34.1
prev parent reply other threads:[~2024-04-08 3:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 3:51 [PATCH V2 0/3] powercap: Introduce TPMI RAPL PMU support Zhang Rui
2024-04-08 3:51 ` [PATCH V2 1/3] powercap: intel_rapl: Sort header files Zhang Rui
2024-04-16 14:01 ` Rafael J. Wysocki
2024-04-17 1:57 ` Zhang, Rui
2024-04-17 8:34 ` Rafael J. Wysocki
2024-04-08 3:51 ` [PATCH V2 2/3] powercap: intel_rapl: Introduce APIs for PMU support Zhang Rui
2024-04-16 13:58 ` Rafael J. Wysocki
2024-04-17 5:26 ` Zhang, Rui
2024-04-22 16:23 ` Zhang, Rui
2024-04-08 3:51 ` Zhang Rui [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240408035141.248644-4-rui.zhang@intel.com \
--to=rui.zhang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=srinivas.pandruvada@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox