Commit d006c935 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] hpet setup comment fix

Suggested by Andrew Walrond <andrew@walrond.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0a66d840
...@@ -81,9 +81,10 @@ static int hpet_timer_stop_set_go(unsigned long tick) ...@@ -81,9 +81,10 @@ static int hpet_timer_stop_set_go(unsigned long tick)
cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC | cfg |= HPET_TN_ENABLE | HPET_TN_PERIODIC |
HPET_TN_SETVAL | HPET_TN_32BIT; HPET_TN_SETVAL | HPET_TN_32BIT;
hpet_writel(cfg, HPET_T0_CFG); hpet_writel(cfg, HPET_T0_CFG);
/* /*
* Some systems seems to need two writes to HPET_T0_CMP, * The first write after writing TN_SETVAL to the config register sets
* to get interrupts working * the counter value, the second write sets the threshold.
*/ */
hpet_writel(tick, HPET_T0_CMP); hpet_writel(tick, HPET_T0_CMP);
hpet_writel(tick, HPET_T0_CMP); hpet_writel(tick, HPET_T0_CMP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment