Skip to contentSkip to conversation

create_periodic_time(): why forced to 0.9ms ?

DISCUSSION Russ Blaine 3 participants 3 messages Jun 29, 2007 – Jul 2, 2007

lore
Share & tools
lore
#0 lore raw

create_periodic_time() forces the period to be at least 0.9 ms. Can anyone explain the history behind this? Why is this done, and how was this constant chosen?

-----------------------------------------------------
Russ Blaine | Solaris Kernel | [email protected]

#1 lore raw

That's a question for whoever at Intel originally wrote that code. I'm sure the answer is that anything smaller is too small. :-) Which is kind of reasonable...

-- Keir

Quoted 11 lines · Russ Blaine

create_periodic_time() forces the period to be at least 0.9 ms. Can anyone explain the history behind this? Why is this done, and how was this constant chosen?

-----------------------------------------------------
Russ Blaine | Solaris Kernel | [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

I'm not the original writer, but know some reason for this:)

At the beginning, this logic is used for safe guard in case bad guest set too low freq in PIT channel.

The lowest PIT freq we known that time is 1ms (linux 2.6 kernel) and allow some inaccuracy because of the round divide(%10, i.e 0.9 ms as you can see).

Quoted 27 lines · Keir Fraser

That's a question for whoever at Intel originally wrote that code. I'm sure the answer is that anything smaller is too small. :-) Which is kind of reasonable...

-- Keir

Quoted 11 lines · Russ Blaine

create_periodic_time() forces the period to be at least 0.9 ms. Can anyone explain the history behind this? Why is this done, and how was this constant chosen?

-----------------------------------------------------
Russ Blaine | Solaris Kernel | [email protected]

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
best rgds,
edwin