Re: ARM: why smp_mb() is not needed in the "__mutex_fastpath_lock"and "__mutex_fastpath_unlock" functions

From: Li Haifeng
Date: Fri Jul 13 2012 - 03:02:31 EST


Hi Shan,

2012/7/12 shan kang <kangshan0910@xxxxxxxxx>:
> Hello,
> I wonder why smp_mb() is not needed in the "__mutex_fastpath_lock"
> and "__mutex_fastpath_unlock" functions which are located in the
> "arch/arm/include/asm/mutex.h"?
> I think "dmb" instruction is necessary there.

Why necessary? Could you explain more detailed?

>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/