Re: [PATCH] RT: Checks for cmpxchg in get_task_struct_rcu()

Daniel Walker
2005-09-26T14:44:44Z

On Mon, 2005-09-26 at 08:25 +0200, Ingo Molnar wrote:
> * Daniel Walker <dwalker@mvista.com> wrote:
>
> > Checks for cmpxchg in get_task_struct_rcu() . No race version.
>
> shouldnt we actually define a global, default cmpxchg() function, based
> on IRQ-disable - instead of open-coding one?

I was thinking it should be restructures so it just needs an atomic_inc
in this case. Considering that without cmpxchg() you must be on a UP
machine .

Daniel