diff options
author | Václav Haisman <vhaisman@gmail.com> | 2016-03-11 11:28:27 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-11 14:01:25 +0100 |
commit | b5476c81d2ab27dd4a46064d3fa45556630fd3cf (patch) | |
tree | 810c0e143aa619ce92ba38eb9465fc630ffe4508 /newlib/libc/stdio/stdio.c | |
parent | d0cf3b7c02ac5118ee8489db5737dd423689a2ca (diff) | |
download | cygnal-b5476c81d2ab27dd4a46064d3fa45556630fd3cf.tar.gz cygnal-b5476c81d2ab27dd4a46064d3fa45556630fd3cf.tar.bz2 cygnal-b5476c81d2ab27dd4a46064d3fa45556630fd3cf.zip |
Spinlock spin with pause instruction
Hi.
I have noticed that Cygwin's spinlock goes into heavy sleeping code
for each spin. It seems it would be a good idea to actually try to
spin a bit first. There is this 'pause' instruction which let's the
CPU make such busy loops be less busy. Here is a patch to do this.
--
VH
Diffstat (limited to 'newlib/libc/stdio/stdio.c')
0 files changed, 0 insertions, 0 deletions