aboutsummaryrefslogtreecommitdiffstats
path: root/src/cdrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdrom.c')
-rw-r--r--src/cdrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cdrom.c b/src/cdrom.c
index ba533d0f..8d1ec9ad 100644
--- a/src/cdrom.c
+++ b/src/cdrom.c
@@ -228,7 +228,7 @@ atapi_is_ready(struct drive_s *drive_g)
int in_progress = 0;
u64 end = calc_future_tsc(5000);
for (;;) {
- if (rdtscll() > end) {
+ if (check_time(end)) {
dprintf(1, "read capacity failed\n");
return -1;
}