Re: HPET vs other timers

From: Nate Lawson <nate_at_root.org>
Date: Sat, 02 Jun 2007 17:30:10 -0700
Poul-Henning Kamp wrote:
> Nate Lawson wrote:
>>> Anyone able to speculate why though?  HPET only reads 32 bits from a
>>> memory mapped region.  No locking or other requirements.  ACPI_timer
>>> does multiple IO ops, which according to bde_at_ are much slower than
>>> memory reads.  
> 
> HPET needs to do metastability mitigation and is not "just a read
> from a memory mapped region".

If it does, then it's not implemented yet:

static u_int
hpet_get_timecount(struct timecounter *tc)
{
        struct acpi_hpet_softc *sc;

        sc = tc->tc_priv;
        return (bus_read_4(sc->mem_res, HPET_OFFSET_VALUE));
}

Are you sure you're not thinking of ACPI-safe?

-- 
Nate
Received on Sat Jun 02 2007 - 22:30:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC