Re: [PATCH] x86: printk_time to use tsc before cpu_clock is ready

From: Ingo Molnar
Date: Wed Aug 27 2008 - 03:42:59 EST



* Yinghai Lu <yhlu.kernel@xxxxxxxxx> wrote:

> +static unsigned long long tsc_clock(int cpu)
> +{
> + unsigned long long t;
> +
> + rdtscll(t);
> +
> + return t;
> +}

hm, i'm not sure i like the whole direction - this reintroduces
printk_clock in essence.

how about initializing cpu_clock() sooner, so that printk timestamps
start ticking as soon as possible?

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/