njl 5622dd6994 Fix several bugs where 32-bit timers and wraparound were not properly
supported.  Symptoms of this bug included unnecessary use of ACPI-safe
and a dmesg that has deltas of about 2^24:

    ACPI timer looks BAD  min = 2, max = 16777206, width = 16777204
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks GOOD min = 4, max = 5, width = 1
    ACPI timer looks BAD  min = 2, max = 16777206, width = 16777204
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks BAD  min = 2, max = 16777210, width = 16777208
    ACPI timer looks BAD  min = 4, max = 16777189, width = 16777185
    ACPI timer looks GOOD min = 4, max = 5, width = 1
    ACPI timer looks BAD  min = 2, max = 7, width = 5
    ACPI timer looks BAD  min = 4, max = 16777189, width = 16777185

To fix this:
* Use a 32 bit timecounter mask when the timer is 32 bits.
* In test_counter(), use the acpi_TimerDelta function which handles 24/32
  bit timers and wraparound.

Miscellaneous fixes:
* Use C99 initializers for timecounter struct.
* Use u_int and uint32_t where appropriate instead of unsigned.
* Remove whitespace-only lines
* Remove the old PIIX4 PCI workaround.  The timecounter testing code has
  been in use for long enough to prove it's functional.
2004-04-21 00:48:16 +00:00
..
2004-04-17 20:30:05 +00:00
2004-02-21 21:10:55 +00:00
2003-08-24 17:55:58 +00:00
2004-04-16 05:34:14 +00:00
2003-08-24 17:55:58 +00:00
2004-03-26 23:17:10 +00:00
2004-02-21 21:10:55 +00:00
2004-03-21 18:16:49 +00:00
2004-04-02 16:41:16 +00:00
2004-02-21 21:10:55 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2004-02-21 21:10:55 +00:00
2004-04-12 20:56:34 +00:00
2004-04-13 14:39:26 +00:00
2004-03-14 23:03:57 +00:00
2003-08-24 17:55:58 +00:00
2004-04-07 21:56:20 +00:00
2004-04-19 18:44:04 +00:00
2004-02-21 21:10:55 +00:00
2004-02-21 21:10:55 +00:00
2004-02-21 21:10:55 +00:00
2004-04-14 02:20:01 +00:00
2004-02-21 21:10:55 +00:00
2004-04-04 05:06:26 +00:00
2003-08-24 17:55:58 +00:00
2004-04-01 00:38:45 +00:00