login
Header Space

 
 

Re: [patch 1/3] new timerfd API - new timerfd API

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Davide Libenzi <davidel@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Michael Kerrisk <mtk-manpages@...>, Andrew Morton <akpm@...>, Linus Torvalds <torvalds@...>
Date: Monday, September 24, 2007 - 11:53 am

On Mon, 2007-09-24 at 08:42 -0700, Davide Libenzi wrote:

For non high res systems we speed up the access to now by storing the
current time when we start to process the hrtimer softirq callbacks.

hrtimer_cb_get_time(timer) reads timer->base->now

For high resolution systems hrtimer_cb_get_time() resolves to
timer->base->get_time().

In the timerfd case we are not in softirq context and we read at any
given later time. Also on SMP the base->now variable might be changed by
the softirq running on the other CPU.

	tglx


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/3] new timerfd API - new timerfd API, Davide Libenzi, (Sun Sep 23, 6:49 pm)
Re: [patch 1/3] new timerfd API - new timerfd API, Thomas Gleixner, (Mon Sep 24, 4:26 am)
Re: [patch 1/3] new timerfd API - new timerfd API, Davide Libenzi, (Mon Sep 24, 11:42 am)
Re: [patch 1/3] new timerfd API - new timerfd API, Thomas Gleixner, (Mon Sep 24, 11:53 am)
speck-geostationary