Print this page
acpica-unix2-20130823
PANKOVs restructure
*** 3,13 ****
* Module Name: utinit - Common ACPI subsystem initialization
*
*****************************************************************************/
/*
! * Copyright (C) 2000 - 2011, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
--- 3,13 ----
* Module Name: utinit - Common ACPI subsystem initialization
*
*****************************************************************************/
/*
! * Copyright (C) 2000 - 2013, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*** 56,91 ****
/* Local prototypes */
static void AcpiUtTerminate (
void);
/******************************************************************************
*
! * FUNCTION: AcpiUtTerminate
*
* PARAMETERS: none
*
* RETURN: none
*
! * DESCRIPTION: Free global memory
*
******************************************************************************/
static void
! AcpiUtTerminate (
void)
{
ACPI_GPE_BLOCK_INFO *GpeBlock;
ACPI_GPE_BLOCK_INFO *NextGpeBlock;
ACPI_GPE_XRUPT_INFO *GpeXruptInfo;
ACPI_GPE_XRUPT_INFO *NextGpeXruptInfo;
- ACPI_FUNCTION_TRACE (UtTerminate);
-
-
/* Free global GPE blocks and related info structures */
GpeXruptInfo = AcpiGbl_GpeXruptListHead;
while (GpeXruptInfo)
{
--- 56,100 ----
/* Local prototypes */
static void AcpiUtTerminate (
void);
+ #if (!ACPI_REDUCED_HARDWARE)
+ static void
+ AcpiUtFreeGpeLists (
+ void);
+
+ #else
+
+ #define AcpiUtFreeGpeLists()
+ #endif /* !ACPI_REDUCED_HARDWARE */
+
+
+ #if (!ACPI_REDUCED_HARDWARE)
/******************************************************************************
*
! * FUNCTION: AcpiUtFreeGpeLists
*
* PARAMETERS: none
*
* RETURN: none
*
! * DESCRIPTION: Free global GPE lists
*
******************************************************************************/
static void
! AcpiUtFreeGpeLists (
void)
{
ACPI_GPE_BLOCK_INFO *GpeBlock;
ACPI_GPE_BLOCK_INFO *NextGpeBlock;
ACPI_GPE_XRUPT_INFO *GpeXruptInfo;
ACPI_GPE_XRUPT_INFO *NextGpeXruptInfo;
/* Free global GPE blocks and related info structures */
GpeXruptInfo = AcpiGbl_GpeXruptListHead;
while (GpeXruptInfo)
{
*** 101,111 ****
--- 110,143 ----
}
NextGpeXruptInfo = GpeXruptInfo->Next;
ACPI_FREE (GpeXruptInfo);
GpeXruptInfo = NextGpeXruptInfo;
}
+ }
+ #endif /* !ACPI_REDUCED_HARDWARE */
+
+ /******************************************************************************
+ *
+ * FUNCTION: AcpiUtTerminate
+ *
+ * PARAMETERS: none
+ *
+ * RETURN: none
+ *
+ * DESCRIPTION: Free global memory
+ *
+ ******************************************************************************/
+
+ static void
+ AcpiUtTerminate (
+ void)
+ {
+ ACPI_FUNCTION_TRACE (UtTerminate);
+
+ AcpiUtFreeGpeLists ();
+ AcpiUtDeleteAddressLists ();
return_VOID;
}
/*******************************************************************************
*** 154,160 ****
/* Purge the local caches */
(void) AcpiUtDeleteCaches ();
return_VOID;
}
-
-
--- 186,190 ----