From: Eric Botcazou <ebotca...@adacore.com>
Date: Sun, 12 Feb 2012 21:15:26 +0100

> +static inline void
> +cpu_relax (void)
> +{
> +  __asm volatile ("" : : : "memory");
> +}

We probably want to do some nop'ish thing here which will yield the
cpu thread on Niagara cpus, I'd recommend something along the lines of
"rd %ccr, %g0" or "rd %y, %g0"

Reply via email to