Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Thomas Gleixner
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

Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Olliver Schinagl
Hey Thomas, On 22-01-15 12:01, Thomas Gleixner wrote: On Thu, 22 Jan 2015, Olliver Schinagl wrote: From: Olliver Schinagl When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() is often used. Quite possibly the timer loop is thus probably fully controlled by

Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Thomas Gleixner
On Thu, 22 Jan 2015, Olliver Schinagl wrote: > From: Olliver Schinagl > > When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() > is often used. Quite possibly the timer loop is thus probably fully > controlled by hrtimer_forward_now() and we don't really care when the >

Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Thomas Gleixner
On Thu, 22 Jan 2015, Olliver Schinagl wrote: From: Olliver Schinagl oli...@schinagl.nl When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() is often used. Quite possibly the timer loop is thus probably fully controlled by hrtimer_forward_now() and we don't really care

Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Olliver Schinagl
Hey Thomas, On 22-01-15 12:01, Thomas Gleixner wrote: On Thu, 22 Jan 2015, Olliver Schinagl wrote: From: Olliver Schinagl oli...@schinagl.nl When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() is often used. Quite possibly the timer loop is thus probably fully controlled

Re: [PATCH] hrtimer: add hrtimer_start_now()

2015-01-22 Thread Thomas Gleixner
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

[PATCH] hrtimer: add hrtimer_start_now()

2015-01-21 Thread Olliver Schinagl
From: Olliver Schinagl When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() is often used. Quite possibly the timer loop is thus probably fully controlled by hrtimer_forward_now() and we don't really care when the timer is started. With hrtimer_start() we need to define

[PATCH] hrtimer: add hrtimer_start_now()

2015-01-21 Thread Olliver Schinagl
From: Olliver Schinagl oli...@schinagl.nl When using a hrtimer for repeating periodic ticks, hrtimer_forward_now() is often used. Quite possibly the timer loop is thus probably fully controlled by hrtimer_forward_now() and we don't really care when the timer is started. With hrtimer_start() we