Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, April 11, 2008 - 12:55 am

* Andi Kleen <andi@firstfloor.org> wrote:


recent CPUs have constant-freq TSCs so it's mostly a legacy issue, but 
the affected installed base is still significant to warrant a fix.

we dont really have to worry about complications like grace periods - 
higher layers in the scheduler protect against temporary sched_clock() 
outliers. So i think this can all be done much simpler. Just get rid of 
the global cpu_khz notion, sched_clock() should simply follow the ->freq 
value - and that's it.

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

Messages in current thread:
[PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Karsten Wiese, (Thu Apr 10, 2:31 pm)
Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Ingo Molnar, (Fri Apr 11, 12:55 am)
Re: [PATCH] x86: set_cyc2ns_scale() remove tsc_now and ns_now, Guillaume Chazarain, (Fri Apr 11, 1:25 am)