ACPICA: Add time macros for various timer/time manipulation.
Constants for time manipulation, including constants for the 100 nanosecond timers. Chao Guan, Bob Moore, Lv Zheng. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
c8d586f8ed
commit
c41679a448
4 changed files with 22 additions and 6 deletions
|
@ -341,7 +341,7 @@ typedef u32 acpi_physical_address;
|
|||
|
||||
/* PM Timer ticks per second (HZ) */
|
||||
|
||||
#define PM_TIMER_FREQUENCY 3579545
|
||||
#define ACPI_PM_TIMER_FREQUENCY 3579545
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
@ -373,6 +373,21 @@ typedef u32 acpi_name; /* 4-byte ACPI name */
|
|||
typedef char *acpi_string; /* Null terminated ASCII string */
|
||||
typedef void *acpi_handle; /* Actually a ptr to a NS Node */
|
||||
|
||||
/* Time constants for timer calculations */
|
||||
|
||||
#define ACPI_MSEC_PER_SEC 1000L
|
||||
|
||||
#define ACPI_USEC_PER_MSEC 1000L
|
||||
#define ACPI_USEC_PER_SEC 1000000L
|
||||
|
||||
#define ACPI_100NSEC_PER_USEC 10L
|
||||
#define ACPI_100NSEC_PER_MSEC 10000L
|
||||
#define ACPI_100NSEC_PER_SEC 10000000L
|
||||
|
||||
#define ACPI_NSEC_PER_USEC 1000L
|
||||
#define ACPI_NSEC_PER_MSEC 1000000L
|
||||
#define ACPI_NSEC_PER_SEC 1000000000L
|
||||
|
||||
/* Owner IDs are used to track namespace nodes for selective deletion */
|
||||
|
||||
typedef u8 acpi_owner_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue