diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-06-10 22:30:32 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-06-10 22:30:32 +0000 |
commit | 4149c6a3ecd5526a6819443c8cfd17cc77bcbb3a (patch) | |
tree | be7cf12653d05ce5bbdc1af466f255291794e6b6 /sys/dev/acpica | |
parent | 2ef84b7da9a6c3e23b4a135e6e863581f16d46e1 (diff) | |
download | src-4149c6a3ecd5526a6819443c8cfd17cc77bcbb3a.tar.gz src-4149c6a3ecd5526a6819443c8cfd17cc77bcbb3a.zip |
Remove double-calls to tc_get_timecount() to warm timecounters.
It seems that second call does not add any useful state change for all
implemented timecounters.
Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=362033
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi.c | 1 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_timer.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 7fa4caf1d742..c3da5eb4cbbe 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -3220,7 +3220,6 @@ acpi_resync_clock(struct acpi_softc *sc) * Warm up timecounter again and reset system clock. */ (void)timecounter->tc_get_timecount(timecounter); - (void)timecounter->tc_get_timecount(timecounter); inittodr(time_second + sc->acpi_sleep_delay); } diff --git a/sys/dev/acpica/acpi_timer.c b/sys/dev/acpica/acpi_timer.c index 20ad87840c7a..b15c39ac6bb6 100644 --- a/sys/dev/acpica/acpi_timer.c +++ b/sys/dev/acpica/acpi_timer.c @@ -274,7 +274,6 @@ acpi_timer_resume_handler(struct timecounter *newtc) "restoring timecounter, %s -> %s\n", tc->tc_name, newtc->tc_name); (void)newtc->tc_get_timecount(newtc); - (void)newtc->tc_get_timecount(newtc); timecounter = newtc; } } |