diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-07-20 18:22:57 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-07-21 14:10:15 -0400 |
commit | 018bdd77cecd7d40d6685a0ec02ef3600214695d (patch) | |
tree | 203fcc2a01c8383532236bfd48e903f927eec79b /src/clock.c | |
parent | 95ee382b65fe18423e48698a242444dc4d0ef0ba (diff) | |
download | qemu-seabios-018bdd77cecd7d40d6685a0ec02ef3600214695d.tar.gz |
Rename check_tsc() (and similar) to timer_check() and use u32.
Rename the check_tsc() function to timer_check(). The CPU TSC is
often not the basis of the timer, so use a more appropriate name.
Convert all callers that were using u64 for the timers to use u32.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/clock.c')
-rw-r--r-- | src/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clock.c b/src/clock.c index 4b33bb8..5014b60 100644 --- a/src/clock.c +++ b/src/clock.c @@ -44,11 +44,11 @@ rtc_updating(void) if ((inb_cmos(CMOS_STATUS_A) & RTC_A_UIP) == 0) return 0; - u64 end = calc_future_tsc(15); + u32 end = timer_calc(15); for (;;) { if ((inb_cmos(CMOS_STATUS_A) & RTC_A_UIP) == 0) return 0; - if (check_tsc(end)) + if (timer_check(end)) // update-in-progress never transitioned to 0 return -1; yield(); |