Pause is used in tight loops to reduce stress to the system. Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/api/cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h index 8a804d4..4cbaf58 100644 --- a/include/odp/api/cpu.h +++ b/include/odp/api/cpu.h @@ -156,6 +156,15 @@ uint64_t odp_cpu_cycles_max(void); uint64_t odp_cpu_cycles_resolution(void); /** + * Pause CPU execution for a short while + * + * This call is intended for tight loops which poll a shared resource. A short + * pause within the loop may save energy and improve system performance as + * CPU polling frequency is reduced. + */ +void odp_cpu_pause(void); + +/** * @} */ -- 2.6.3 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp