X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=lib%2Flockref.c;h=f07a40d33871e2b9414ea40b53ee154108932d4e;hb=76ae07df2520d2f26c565747ad40c9e993b16cf7;hp=d2b123f8456b22479681d4512fbb8c1e445a0158;hpb=4f9e5df211a8591b3fb5c154ecc7ec5d4ecd6b79;p=karo-tx-linux.git diff --git a/lib/lockref.c b/lib/lockref.c index d2b123f8456b..f07a40d33871 100644 --- a/lib/lockref.c +++ b/lib/lockref.c @@ -1,5 +1,6 @@ #include #include +#include #if USE_CMPXCHG_LOCKREF @@ -11,14 +12,6 @@ # define cmpxchg64_relaxed cmpxchg64 #endif -/* - * Allow architectures to override the default cpu_relax() within CMPXCHG_LOOP. - * This is useful for architectures with an expensive cpu_relax(). - */ -#ifndef arch_mutex_cpu_relax -# define arch_mutex_cpu_relax() cpu_relax() -#endif - /* * Note that the "cmpxchg()" reloads the "old" value for the * failure case.