Messages in this thread | | | Subject | Re: [PATCH] RT: Checks for cmpxchg in get_task_struct_rcu() | From | Daniel Walker <> | Date | Mon, 26 Sep 2005 07:44:36 -0700 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |