lkml.org 
[lkml]   [2010]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 02/11] sched: SCHED_DEADLINE policy implementation.
From
Date
On Sun, 2010-02-28 at 20:17 +0100, Raistlin wrote:
> + /*
> + * Arm the timer to fire at wakeup, tying to compensate for
> + * the fact that wakeup is actually coming from rq->clock and
> + * not from hrtimer's time base reading.
> + */
> + act = ns_to_ktime(wakeup);
> + now = hrtimer_cb_get_time(&dl_se->dl_timer);
> + delta = ktime_to_ns(now) - rq->clock;
> + act = ktime_add_ns(act, delta);

This is sad, but I'm afraid a reality we have to live with..


\
 
 \ /
  Last update: 2010-04-13 20:25    [W:0.110 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site