Scheduler: spin deadline computation fix

This commit is contained in:
Pavel Kirienko 2015-06-21 03:39:45 +03:00
parent a1a1715b10
commit ba2f7de9d8

View File

@ -132,7 +132,7 @@ MonotonicTime Scheduler::computeDispatcherSpinDeadline(MonotonicTime spin_deadli
const MonotonicTime ts = getMonotonicTime();
if (earliest > ts)
{
if (ts - earliest > deadline_resolution_)
if (earliest - ts > deadline_resolution_)
{
return ts + deadline_resolution_;
}