[dpdk-dev] [PATCH v16 05/11] eal: add monitor wakeup function
Ananyev, Konstantin
konstantin.ananyev at intel.com
Wed Jan 13 13:46:02 CET 2021
> Now that we have everything in a C file, we can store the information
> about our sleep, and have a native mechanism to wake up the sleeping
> core. This mechanism would however only wake up a core that's sleeping
> while monitoring - waking up from `rte_power_pause` won't work.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>
> Notes:
> v16:
> - Improve error handling
> - Take a lock before UMONITOR
>
> v13:
> - Add comments around wakeup code to explain what it does
> - Add lcore_id parameter checking to prevent buffer overrun
>
> lib/librte_eal/arm/rte_power_intrinsics.c | 9 ++
> .../include/generic/rte_power_intrinsics.h | 16 +++
> lib/librte_eal/ppc/rte_power_intrinsics.c | 9 ++
> lib/librte_eal/version.map | 1 +
> lib/librte_eal/x86/rte_power_intrinsics.c | 98 ++++++++++++++++++-
> 5 files changed, 132 insertions(+), 1 deletion(-)
>
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> 2.25.1
More information about the dev
mailing list