Hi,

Remy Bohmer <l.pinguin <at> gmail.com> writes:

> 
> Hello Thomas,
> 
> I have build an implementation for the routine
> futex_atomic_cmpxchg_inatomic() to make PTHREAD_PRIO_INHERIT mutex
> work on ARM.
> Compared to other architectures where CPU specific assembler is used,
> it is probably not the most optimal implementation possible, but I
> tested it successfully on a Atmel AT91RM9200 core, and it could work
> on other (UP) architectures as well.
> 
> What do you think of it?
> Or do you know a better solution?

May be you could have a look at __kuser_cmpxchg (arch/arm/kernel/entry-armv.S).
There stuff for smp for armv6 and newer.
For armv5 and older, maybe masking interrupt is the best solution.


But I believe you should CC arm linux mailling list. You should find more arm
expert :)


Matthieu

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to