Re: [PATCH][2.6][2/5]Support for HPET based timer

From: Andrew Morton
Date: Tue Aug 26 2003 - 13:50:04 EST


"Pallipadi, Venkatesh" <venkatesh.pallipadi@xxxxxxxxx> wrote:
>
> Problem Description:
> The requirement from HPET side is, we need to map HPET physical
> address during timer_init()
> routine and also during any read/write HPET addresses. We need to have
> this mapping kind of
> permanently, as we will do HPET reads/writes during every timer
> interrupt and also during
> every gettimeofday (if we don't use tsc timer).
> And the timer_init() happens before mem_init() (but after paging
> init()), so we cannot
> directly use ioremap(). Current implementation is using a separate
> fixmap region for HPET.

I doubt if we really need the timer running that early, apart from for
calibrate_delay().

You can probably move the time_init() and calibrate_delay() so they occur
after mem_init(). A close review would be needed to see if that is likely
to break anything. If it is, then consider creating a new late_time_init()
thing, and call that and calibrate_delay() after mem_init().



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