Re: [RFC][PATCH 02/11] sched: SCHED_DEADLINE policy implementation.

From: Peter Zijlstra
Date: Tue Apr 13 2010 - 14:23:45 EST


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..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/