From: Anatoly Burakov Date: Mon, 2 Nov 2020 12:57:36 +0000 (+0000) Subject: eal: fix power intrinsics API description X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fc61d9a89b610d70797ae3f23128091f09ec917f;p=dpdk.git eal: fix power intrinsics API description Currently, the intrinsics documentation refers to `rte_cpu_get_features` as a check for whether these intrinsics are supported at runtime. This is incorrect, because actually the user should use the `rte_cpu_get_intrinsics_support` API to do said check. Fix the typo. Fixes: 128021421256 ("eal: add intrinsics support check infrastructure") Reported-by: David Marchand Signed-off-by: Anatoly Burakov Acked-by: Liang Ma --- diff --git a/lib/librte_eal/include/generic/rte_power_intrinsics.h b/lib/librte_eal/include/generic/rte_power_intrinsics.h index 9622c7f9ce..dd520d90fa 100644 --- a/lib/librte_eal/include/generic/rte_power_intrinsics.h +++ b/lib/librte_eal/include/generic/rte_power_intrinsics.h @@ -33,7 +33,7 @@ * optimized power state may be aborted. * * @warning It is responsibility of the user to check if this function is - * supported at runtime using `rte_cpu_get_features()` API call. + * supported at runtime using `rte_cpu_get_intrinsics_support()` API call. * Failing to do so may result in an illegal CPU instruction error. * * @param p @@ -74,7 +74,7 @@ static inline void rte_power_monitor(const volatile void *p, * waking up the CPU. * * @warning It is responsibility of the user to check if this function is - * supported at runtime using `rte_cpu_get_features()` API call. + * supported at runtime using `rte_cpu_get_intrinsics_support()` API call. * Failing to do so may result in an illegal CPU instruction error. * * @param p @@ -110,7 +110,7 @@ static inline void rte_power_monitor_sync(const volatile void *p, * timestamp is reached. * * @warning It is responsibility of the user to check if this function is - * supported at runtime using `rte_cpu_get_features()` API call. + * supported at runtime using `rte_cpu_get_intrinsics_support()` API call. * Failing to do so may result in an illegal CPU instruction error. * * @param tsc_timestamp