summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fprintf.c
diff options
context:
space:
mode:
authorVáclav Haisman <vhaisman@gmail.com>2016-03-11 11:28:27 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-11 14:01:25 +0100
commitb5476c81d2ab27dd4a46064d3fa45556630fd3cf (patch)
tree810c0e143aa619ce92ba38eb9465fc630ffe4508 /newlib/libc/stdio/fprintf.c
parentd0cf3b7c02ac5118ee8489db5737dd423689a2ca (diff)
downloadcygnal-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/fprintf.c')
0 files changed, 0 insertions, 0 deletions