On Mon, 27 Apr 2009 14:05:44 -0500 "Timur Tabi" <ti...@freescale.com> wrote:
> +#define spin_event_timeout(condition, timeout, delay, > rc) \ > +{ \ > + unsigned long __loops = tb_ticks_per_usec * > timeout; \ > + unsigned long __start = > get_tbl(); \ > + while (!(rc = (condition)) && (tb_ticks_since(__start) <= > __loops)) \ > + udelay(delay); > \ +} > + Would cpu_relax be a good thing to put here? Something like: while (!(rc = (condition)) && (tb_ticks_since(__start) <= __loops)) \ if (delay) \ udelay(delay); \ else \ cpu_relax(); \ Cheers, Sean _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev