Re: 2.6.18-rt7: rollover with 32-bit cycles_t

From: Ingo Molnar
Date: Thu Nov 09 2006 - 04:15:50 EST



* Kevin Hilman <khilman@xxxxxxxxxx> wrote:

> - if (T2 < T1)
> +
> + /* check for buggy clocks, handling wrap for 32-bit clocks */
> + if (TYPE_EQUAL(cycles_t, unsigned long)) {
> + if (time_after(T1, T2))
> + printk("bug: %08x < %08x!\n", T2, T1);
> + } else if (T2 < T1)
> printk("bug: %016Lx < %016Lx!\n", T2, T1);
> +

ok, i have applied this one.

Ingo
-
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/