mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* lost timer check in 2.6.7
@ 2004-06-16 11:19 Andi Kleen
  2004-06-16 15:15 ` Dominik Brodowski
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2004-06-16 11:19 UTC (permalink / raw)
  To: johnstul; +Cc: linux-kernel, linux


2.6.7 has 

+               /* ... but give the TSC a fair chance */
+               if (lost_count > 25)
+                       cpufreq_delayed_get();

While looking at porting this code to x86-64 I noticed that this only runs for 
the first lost timer event. In case of dynamic frequency which varies shouldn't this
be more like

		if ((lost_count % 25) == 0) 
			cpufreq_delayed_get();

? Otherwise this heuristic will only work once.

-Andi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-16 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 11:19 lost timer check in 2.6.7 Andi Kleen
2004-06-16 15:15 ` Dominik Brodowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®