Decrease ACPI-fast timecounter quality to 900 and increase HPET timecounter
quality to 950. HPET on modern platforms usually have better resolution and lower latency than ACPI timer. Effectively this changes default timecounter hardware from ACPI-fast to HPET by default when both are available. Discussed with: avg
This commit is contained in:
parent
7b4f47c1db
commit
ca5f1efdd9
@ -476,7 +476,7 @@ hpet_attach(device_t dev)
|
||||
sc->tc.tc_get_timecount = hpet_get_timecount,
|
||||
sc->tc.tc_counter_mask = ~0u,
|
||||
sc->tc.tc_name = "HPET",
|
||||
sc->tc.tc_quality = 900,
|
||||
sc->tc.tc_quality = 950,
|
||||
sc->tc.tc_frequency = sc->freq;
|
||||
sc->tc.tc_priv = sc;
|
||||
tc_init(&sc->tc);
|
||||
|
@ -203,7 +203,7 @@ acpi_timer_probe(device_t dev)
|
||||
if (j == 10) {
|
||||
acpi_timer_timecounter.tc_name = "ACPI-fast";
|
||||
acpi_timer_timecounter.tc_get_timecount = acpi_timer_get_timecount;
|
||||
acpi_timer_timecounter.tc_quality = 1000;
|
||||
acpi_timer_timecounter.tc_quality = 900;
|
||||
} else {
|
||||
acpi_timer_timecounter.tc_name = "ACPI-safe";
|
||||
acpi_timer_timecounter.tc_get_timecount = acpi_timer_get_timecount_safe;
|
||||
|
Loading…
Reference in New Issue
Block a user