From: Huisong Li <lihuisong@huawei.com>
To: <anatoly.burakov@intel.com>, <sivaprasad.tummala@amd.com>
Cc: <dev@dpdk.org>, <thomas@monjalon.net>,
<stephen@networkplumber.org>, <fengchengwen@huawei.com>,
<yangxingui@huawei.com>, <zhanjie9@hisilicon.com>,
<lihuisong@huawei.com>
Subject: [PATCH 3/3] power: use common decimal macro definition
Date: Sat, 9 May 2026 16:45:03 +0800 [thread overview]
Message-ID: <20260509084503.2917038-4-lihuisong@huawei.com> (raw)
In-Reply-To: <20260509084503.2917038-1-lihuisong@huawei.com>
Power QoS uses the common decimal macro definition
to replace magic number.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
lib/power/rte_power_qos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/power/rte_power_qos.c b/lib/power/rte_power_qos.c
index be230d1c50..f991230532 100644
--- a/lib/power/rte_power_qos.c
+++ b/lib/power/rte_power_qos.c
@@ -115,7 +115,7 @@ rte_power_qos_get_cpu_resume_latency(uint16_t lcore_id)
if (strcmp(buf, "n/a") == 0)
latency = RTE_POWER_QOS_STRICT_LATENCY_VALUE;
else {
- latency = strtoul(buf, NULL, 10);
+ latency = strtoul(buf, NULL, POWER_CONVERT_TO_DECIMAL);
latency = latency == 0 ? RTE_POWER_QOS_RESUME_LATENCY_NO_CONSTRAINT : latency;
}
--
2.33.0
next prev parent reply other threads:[~2026-05-09 8:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-09 8:45 [PATCH 0/3] power: some cleancode for cpufreq library Huisong Li
2026-05-09 8:45 ` [PATCH 1/3] power: move power state structure to power cpufreq header Huisong Li
2026-05-09 8:45 ` [PATCH 2/3] power: unify decimal format macro for strtoul Huisong Li
2026-05-09 8:45 ` Huisong Li [this message]
2026-05-11 1:10 ` [PATCH 0/3] power: some cleancode for cpufreq library fengchengwen
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=20260509084503.2917038-4-lihuisong@huawei.com \
--to=lihuisong@huawei.com \
--cc=anatoly.burakov@intel.com \
--cc=dev@dpdk.org \
--cc=fengchengwen@huawei.com \
--cc=sivaprasad.tummala@amd.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
--cc=yangxingui@huawei.com \
--cc=zhanjie9@hisilicon.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