Commit effe5df5 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] Fix hpet time interpolator setup for CONFIG_TIME_INTERPOLATION

The time interpolator scalability enhancement patch broke the time
interpolator integration for hpet on IA64.  Here is the fix.
parent b7dd4021
......@@ -664,8 +664,7 @@ int hpet_control(struct hpet_task *tp, unsigned int cmd, unsigned long arg)
static struct time_interpolator hpet_interpolator = {
.source = TIME_SOURCE_MMIO64,
.shift = 10,
.addr = MC
.shift = 10
};
#endif
......@@ -953,11 +952,10 @@ static int __init hpet_init(void)
struct hpet *hpet;
hpet = hpets->hp_hpet;
hpet_cycles_per_sec = hpet_time_div(hpets->hp_period);
hpet_interpolator.frequency = hpet_cycles_per_sec;
hpet_interpolator.drift = hpet_cycles_per_sec *
hpet_interpolator.addr = &hpets->hp_hpet->hpet_mc;
hpet_interpolator.frequency = hpet_time_div(hpets->hp_period);
hpet_interpolator.drift = hpet_interpolator.frequency *
HPET_DRIFT / 1000000;
hpet_nsecs_per_cycle = 1000000000 / hpet_cycles_per_sec;
register_time_interpolator(&hpet_interpolator);
}
#endif
......
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