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)
commit7fd56df9056d6442d52f23d3fb356010b988668d
treeb914fb08f8dd927ee4017f1364a499a386ac9c73
parenta5a39b5b9134742ddc7b6bd6e9a363bcbbe3c9a4
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