diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-20 20:54:19 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 23:44:39 -0400 |
commit | 102a0aafc87ad894e7aba479df62ec4961bb6985 (patch) | |
tree | a6f59e352209e8de42f015733314a681a8e0d947 /kernel/lib/ktime.c | |
parent | add ata_init to main and fix some compilation problems (diff) | |
download | comus-102a0aafc87ad894e7aba479df62ec4961bb6985.tar.gz comus-102a0aafc87ad894e7aba479df62ec4961bb6985.tar.bz2 comus-102a0aafc87ad894e7aba479df62ec4961bb6985.zip |
move kspin to use ms, add ata_report
Diffstat (limited to 'kernel/lib/ktime.c')
-rw-r--r-- | kernel/lib/ktime.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/lib/ktime.c b/kernel/lib/ktime.c deleted file mode 100644 index 9bfcaa9..0000000 --- a/kernel/lib/ktime.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <lib/klib.h> -#include <comus/time.h> - -void kspin_sleep_seconds(size_t seconds) -{ - const uint64_t start = unixtime(); - - while (1) { - const uint64_t now = unixtime(); - - if (now - start > seconds) { - return; - } - } -} |