Author: jkim
Date: Mon Apr  4 18:39:04 2011
New Revision: 220338
URL: http://svn.freebsd.org/changeset/base/220338

Log:
  Move a trivial acpi_TimerDelta() to acpivar.h to make it inlineable.

Modified:
  head/sys/dev/acpica/acpi.c
  head/sys/dev/acpica/acpivar.h

Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c  Mon Apr  4 18:23:55 2011        (r220337)
+++ head/sys/dev/acpica/acpi.c  Mon Apr  4 18:39:04 2011        (r220338)
@@ -2084,16 +2084,6 @@ acpi_GetHandleInScope(ACPI_HANDLE parent
     }
 }
 
-/* Find the difference between two PM tick counts. */
-uint32_t
-acpi_TimerDelta(uint32_t end, uint32_t start)
-{
-
-       if (end < start && (AcpiGbl_FADT.Flags & ACPI_FADT_32BIT_TIMER) == 0)
-               end |= 0x01000000;
-       return (end - start);
-}
-
 /*
  * Allocate a buffer with a preset data size.
  */

Modified: head/sys/dev/acpica/acpivar.h
==============================================================================
--- head/sys/dev/acpica/acpivar.h       Mon Apr  4 18:23:55 2011        
(r220337)
+++ head/sys/dev/acpica/acpivar.h       Mon Apr  4 18:39:04 2011        
(r220338)
@@ -273,6 +273,16 @@ acpi_get_type(device_t dev)
     return (t);
 }
 
+/* Find the difference between two PM tick counts. */
+static __inline uint32_t
+acpi_TimerDelta(uint32_t end, uint32_t start)
+{
+
+       if (end < start && (AcpiGbl_FADT.Flags & ACPI_FADT_32BIT_TIMER) == 0)
+               end |= 0x01000000;
+       return (end - start);
+}
+
 #ifdef ACPI_DEBUGGER
 void           acpi_EnterDebugger(void);
 #endif
@@ -311,7 +321,6 @@ BOOLEAN             acpi_DeviceIsPresent(device_t d
 BOOLEAN                acpi_BatteryIsPresent(device_t dev);
 ACPI_STATUS    acpi_GetHandleInScope(ACPI_HANDLE parent, char *path,
                    ACPI_HANDLE *result);
-uint32_t       acpi_TimerDelta(uint32_t end, uint32_t start);
 ACPI_BUFFER    *acpi_AllocBuffer(int size);
 ACPI_STATUS    acpi_ConvertBufferToInteger(ACPI_BUFFER *bufp,
                    UINT32 *number);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to