In idle(), "sti; hlt" must be atomic or we can waste time waiting for
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 7 Apr 2005 18:00:06 +0000 (18:00 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 7 Apr 2005 18:00:06 +0000 (18:00 +0000)
commit4628083afdae12a6ff5541b160d9f73db8ee6abd
tree9cff7b81bb4b0846450489a0b65b9b639dbcb0be
parent278231fad4bbadba0c62aa09b15d28078c800f2d
In idle(), "sti; hlt" must be atomic or we can waste time waiting for
the next clock tick.
Fix inspired by Linus Torvalds in message
<Pine.LNX.4.58.0504071000450.28951@ppc970.osdl.org>.
src/threads/thread.c