From 018bdd77cecd7d40d6685a0ec02ef3600214695d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 20 Jul 2013 18:22:57 -0400 Subject: 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 --- src/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clock.c') 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(); -- cgit v1.2.1