From e20dd6ed06967c253ce8ff89512aa9aa4ed56db1 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 6 Oct 2014 14:21:28 +0200 Subject: [PATCH] Fix waiting for absolute time on clocks. --- kernel/clock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/clock.cpp b/kernel/clock.cpp index c5ae5144..8cfb2d1a 100644 --- a/kernel/clock.cpp +++ b/kernel/clock.cpp @@ -277,7 +277,7 @@ struct timespec Clock::SleepUntil(struct timespec expiration) struct timespec now = current_time; UnlockClock(); - if ( timespec_le(now, expiration) ) + if ( timespec_le(expiration, now) ) break; if ( Signal::IsPending() )