diff options
author | sigsegv7 <ian@vegaa.systems> | 2023-09-15 23:35:50 -0400 |
---|---|---|
committer | sigsegv7 <ian@vegaa.systems> | 2023-09-15 23:35:50 -0400 |
commit | af036bb3346026d84b640478beb3e87308367fd8 (patch) | |
tree | f29c2e06e460d04157ecc371657afaa6d460d279 /sys/dev | |
parent | d4365c9a7f653f5d81c56424fe04edb4656fd1e2 (diff) |
kernel: dev: Add extra HPET sleep functions
Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/timer/hpet.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/timer/hpet.c b/sys/dev/timer/hpet.c index ab30f63..9e9180f 100644 --- a/sys/dev/timer/hpet.c +++ b/sys/dev/timer/hpet.c @@ -128,6 +128,18 @@ hpet_msleep(size_t ms) } int +hpet_usleep(size_t us) +{ + return hpet_sleep(us, 1000000000); +} + +int +hpet_nsleep(size_t ns) +{ + return hpet_sleep(ns, 1000000); +} + +int hpet_init(void) { struct acpi_gas *gas; |