Fastlock should yield in ARM
Former-commit-id: 6c65a11b8d841517f372ea9962b8dbc127390943
This commit is contained in:
parent
3668715ba3
commit
dd5acf2c0d
@ -289,7 +289,9 @@ extern "C" void fastlock_lock(struct fastlock *lock)
|
||||
break;
|
||||
|
||||
#if defined(__i386__) || defined(__amd64__)
|
||||
__asm__ ("pause");
|
||||
__asm__ __volatile__ ("pause");
|
||||
#elif defined(__arm__)
|
||||
__asm__ __volatile__ ("yield");
|
||||
#endif
|
||||
if ((++cloops % 1024*1024) == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user