This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 04b0be7579f77821418c0c7c524950af6aeab6a6 (commit) from 6ccae3b2720a4ad84d3e50aa5851f64eb3d83b3c (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 04b0be7579f77821418c0c7c524950af6aeab6a6 Author: Brian Brooks brian.brooks@linaro.org Date: Thu Jan 26 21:31:43 2017 -0600
linux-generic: add ARM odp_cpu_pause()
Signed-off-by: Brian Brooks brian.brooks@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/arch/arm/odp/api/cpu_arch.h b/platform/linux-generic/arch/arm/odp/api/cpu_arch.h index 22b1da2..7c75a69 100644 --- a/platform/linux-generic/arch/arm/odp/api/cpu_arch.h +++ b/platform/linux-generic/arch/arm/odp/api/cpu_arch.h @@ -15,6 +15,12 @@ extern "C" {
static inline void odp_cpu_pause(void) { + /* YIELD hints the CPU to switch to another thread if possible + * and executes as a NOP otherwise. + * ISB flushes the pipeline, then restarts. This is guaranteed to + * stall the CPU a number of cycles. + */ + __asm volatile("isb" ::: "memory"); }
#ifdef __cplusplus
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/arch/arm/odp/api/cpu_arch.h | 6 ++++++ 1 file changed, 6 insertions(+)
hooks/post-receive