summaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorNils Carlson2009-09-24 00:57:13 +0200
committerLinus Torvalds2009-09-24 16:21:03 +0200
commitae21cf9248584d9b3776bfe2ebec47256bf098f8 (patch)
tree2f32a87f8e23c70d7fc9f73bc58195510df4561d /drivers/message
parentmwave: fix read buffer overflow (diff)
downloadkernel-qcow2-linux-ae21cf9248584d9b3776bfe2ebec47256bf098f8.tar.gz
kernel-qcow2-linux-ae21cf9248584d9b3776bfe2ebec47256bf098f8.tar.xz
kernel-qcow2-linux-ae21cf9248584d9b3776bfe2ebec47256bf098f8.zip
hpet: hpet driver periodic timer setup bug fixes
The periodic interrupt from drivers/char/hpet.c does not work correctly, both when using the periodic capability of the hardware and while emulating the periodic interrupt (when hardware does not support periodic mode). With timers capable of periodic interrupts, the comparator field is first set with the period value followed by set of hidden accumulator, which has the side effect of overwriting the comparator value. This results in wrong periodicity for the interrupts. For, periodic interrupts to work, following steps are necessary, in that order. * Set config with Tn_VAL_SET_CNF bit * Write to hidden accumulator, the value written is the time when the first interrupt should be generated * Write compartor with period interval for subsequent interrupts (http://www.intel.com/hardwaredesign/hpetspec_1.pdf ) When emulating periodic timer with timers not capable of periodic interrupt, driver is adding the period to counter value instead of comparator value, which causes slow drift when using this emulation. Also, driver seems to add hpetp->hp_delta both while setting up periodic interrupt and while emulating periodic interrupts with timers not capable of doing periodic interrupts. This hp_delta will result in slower than expected interrupt rate and should not be used while setting the interval. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Nils Carlson <nils.carlson@ericsson.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions