diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2000-10-02 08:58:50 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2000-10-02 08:58:50 +0000 |
commit | cbe743540c12fba549b329ef283b665da0f57a90 (patch) | |
tree | 869a94a142125aa1f9ffbecc79d9b5ced1889ee1 /usr.sbin | |
parent | 4f4f698466ba9217372a68e49178f68c9419491e (diff) | |
download | FreeBSD-src-cbe743540c12fba549b329ef283b665da0f57a90.zip FreeBSD-src-cbe743540c12fba549b329ef283b665da0f57a90.tar.gz |
Fix StallOp implementaion. I've noticed that StallOp corresponds to
OsdSleepUsec(), SleepOp corresponds to OsdSleep() by reading ACPICA
source code.
- Add OsdSleepUsec() which uses DELAY() simply.
- Change unit of acpi_sleep() argument; microseconds to milliseconds.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/acpi/amldb/aml/aml_common.h | 2 | ||||
-rw-r--r-- | usr.sbin/acpi/amldb/aml/aml_parse.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/acpi/amldb/aml/aml_common.h b/usr.sbin/acpi/amldb/aml/aml_common.h index 827c324..00f1116 100644 --- a/usr.sbin/acpi/amldb/aml/aml_common.h +++ b/usr.sbin/acpi/amldb/aml/aml_common.h @@ -47,7 +47,7 @@ printf(fmt, args); \ } while(0) #define AML_DEBUGGER(x, y) /* no debugger in kernel */ -#define AML_STALL(micro) DELAY(micro) +#define AML_STALL(micro) OsdSleepUsec(micro) #define AML_SLEEP(sec, milli) OsdSleep(sec, milli) #else /* !_KERNEL */ #define AML_SYSASSERT(x) assert(x) diff --git a/usr.sbin/acpi/amldb/aml/aml_parse.c b/usr.sbin/acpi/amldb/aml/aml_parse.c index ce40e64..dc6f46b 100644 --- a/usr.sbin/acpi/amldb/aml/aml_parse.c +++ b/usr.sbin/acpi/amldb/aml/aml_parse.c @@ -57,7 +57,6 @@ #include <sys/systm.h> #include <sys/bus.h> #include <machine/bus.h> -#include <machine/clock.h> #include <dev/acpi/acpireg.h> #include <dev/acpi/acpivar.h> #ifndef ACPI_NO_OSDFUNC_INLINE |