diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-04-20 20:54:19 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 20:55:41 -0400 |
| commit | 14078bdae486cab3b77c03aba68f0b7d90876662 (patch) | |
| tree | a6f59e352209e8de42f015733314a681a8e0d947 /kernel/lib/ktime.c | |
| parent | add ata_init to main and fix some compilation problems (diff) | |
| download | comus-14078bdae486cab3b77c03aba68f0b7d90876662.tar.gz comus-14078bdae486cab3b77c03aba68f0b7d90876662.tar.bz2 comus-14078bdae486cab3b77c03aba68f0b7d90876662.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; - } - } -} |