Re: + high-res-timers-utilize-tsc-clocksource-again.patch added to-mm tree

From: Daniel Walker
Date: Tue Dec 12 2006 - 11:46:40 EST


> +
> + if (pm == last_pm) {
> + interval_tsc = now_tsc - last_tsc;
> + interval_tsc *= HZ;
> + do_div(interval_tsc, cpu_khz*1000);
> + } else {
> + if (pm < last_pm)
> + pm += ACPI_PM_OVRRUN;
> + pm_delta = pm - last_pm;
> + interval_tsc = (((u64) pm_delta) * pm_multiplier) >> 22;
> + do_div(interval_tsc, TICK_NSEC);
> + }



What is this accomplishing? My TSC gets marked unstable, and it's not
unstable, in addition I have HRT off .. The else clause above just
doesn't seem right ..

Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/