]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86_64: Explain why HPET T0_CMP register is written twice
authorVojtech Pavlik <vojtech@suse.cz>
Mon, 26 Jun 2006 11:58:35 +0000 (13:58 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:19 +0000 (10:48 -0700)
commitb2df3ddb68fc02e3bae78b7adaeca8561d02ea6d
tree6787e6674fc52b1b31032cfa3edcf40034bf6bf0
parent4221133845f81ab4428c79a89e37be2c87624c1a
[PATCH] x86_64: Explain why HPET T0_CMP register is written twice

After writing the CFG register, the first value written to the T0_CMP
register is the value at which next interrupt should be triggered, every
value after that sets the period of the interrupt. For that reason, the code
needs to write the value twice - to set both the phase and period.

[AK: I had already figured it out by myself, but it's still useful
to have a comment for this.]

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/time.c