Re: [PATCH] hrtimer: add hrtimer_start_now()

From: Thomas Gleixner
Date: Thu Jan 22 2015 - 14:35:50 EST


On Thu, 22 Jan 2015, Olliver Schinagl wrote:
> On 22-01-15 12:01, Thomas Gleixner wrote:
> > Aside of that, what's wrong with doing:
> >
> > static const ktime_t ktime_zero = { .tv64 = 0 };
> >
> > hrtimer_start(timer, ktime_zero, HRTIMER_MODE_REL);
> I guess the same could be said for hrtimer_forward_now I suppose. It was just
> intended as a little helper, with emphasis on helper.

Well, no. htimer_forward_now() is mainly there to maintain a periodic
schedule which takes gaps into account.

I have nothing against the start_now() helper, but it's simpler and
less code with start relative than with abs and get_time().

Thanks,

tglx
--
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/