Lines Matching refs:timecounter
51 * A timecounter based on the free-running ACPI timer.
71 static void acpi_timer_resume_handler(struct timecounter *);
72 static void acpi_timer_suspend_handler(struct timecounter *);
73 static u_int acpi_timer_get_timecount(struct timecounter *tc);
74 static u_int acpi_timer_get_timecount_safe(struct timecounter *tc);
98 static struct timecounter acpi_timer_timecounter = {
262 acpi_timer_resume_handler(struct timecounter *newtc)
264 struct timecounter *tc;
266 tc = timecounter;
270 "restoring timecounter, %s -> %s\n",
274 timecounter = newtc;
279 acpi_timer_suspend_handler(struct timecounter *newtc)
281 struct timecounter *tc;
289 if ((timecounter->tc_flags & TC_FLAGS_SUSPEND_SAFE) != 0) {
291 * If we are using a suspend safe timecounter, don't
298 ("acpi_timer_suspend_handler: wrong timecounter"));
300 tc = timecounter;
304 "switching timecounter, %s -> %s\n",
308 timecounter = newtc;
318 acpi_timer_get_timecount(struct timecounter *tc)
331 acpi_timer_get_timecount_safe(struct timecounter *tc)