Message ID | 1468862126-24982-3-git-send-email-brian.brooks@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/platform/linux-generic/include/odp/api/cpu.h b/platform/linux-generic/include/odp/api/cpu.h index 3330326..b9405b7 100644 --- a/platform/linux-generic/include/odp/api/cpu.h +++ b/platform/linux-generic/include/odp/api/cpu.h @@ -38,7 +38,9 @@ extern "C" { static inline void odp_cpu_pause(void) { -#if defined(__OCTEON__) +#if defined(__aarch64__) + __asm__ volatile("yield"); +#elif defined(__OCTEON__) __asm__ volatile("nop"); __asm__ volatile("nop"); __asm__ volatile("nop");
Signed-off-by: Brian Brooks <brian.brooks@linaro.org> --- platform/linux-generic/include/odp/api/cpu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.9.0