Re: [dpdk-dev] [PATCH v16 05/11] eal: add monitor wakeup function
From: Ananyev, Konstantin <hidden>
Date: 2021-01-13 12:46:13
From: Ananyev, Konstantin <hidden>
Date: 2021-01-13 12:46:13
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 <redacted>
---
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 <redacted>
2.25.1