[PATCH 3/3] power: use common decimal macro definition
Huisong Li
lihuisong at huawei.com
Sat May 9 10:45:03 CEST 2026
Power QoS uses the common decimal macro definition
to replace magic number.
Signed-off-by: Huisong Li <lihuisong at 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
More information about the dev
mailing list