diff options
Diffstat (limited to 'drivers/acpi/utilities/utinit.c')
| -rw-r--r-- | drivers/acpi/utilities/utinit.c | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/drivers/acpi/utilities/utinit.c b/drivers/acpi/utilities/utinit.c index bdbadaf48d29..7f3713889ff0 100644 --- a/drivers/acpi/utilities/utinit.c +++ b/drivers/acpi/utilities/utinit.c | |||
| @@ -49,19 +49,29 @@ | |||
| 49 | #define _COMPONENT ACPI_UTILITIES | 49 | #define _COMPONENT ACPI_UTILITIES |
| 50 | ACPI_MODULE_NAME ("utinit") | 50 | ACPI_MODULE_NAME ("utinit") |
| 51 | 51 | ||
| 52 | /* Local prototypes */ | ||
| 53 | |||
| 54 | static void | ||
| 55 | acpi_ut_fadt_register_error ( | ||
| 56 | char *register_name, | ||
| 57 | u32 value, | ||
| 58 | acpi_size offset); | ||
| 59 | |||
| 60 | static void acpi_ut_terminate ( | ||
| 61 | void); | ||
| 62 | |||
| 52 | 63 | ||
| 53 | /******************************************************************************* | 64 | /******************************************************************************* |
| 54 | * | 65 | * |
| 55 | * FUNCTION: acpi_ut_fadt_register_error | 66 | * FUNCTION: acpi_ut_fadt_register_error |
| 56 | * | 67 | * |
| 57 | * PARAMETERS: *register_name - Pointer to string identifying register | 68 | * PARAMETERS: register_name - Pointer to string identifying register |
| 58 | * Value - Actual register contents value | 69 | * Value - Actual register contents value |
| 59 | * acpi_test_spec_section - TDS section containing assertion | 70 | * Offset - Byte offset in the FADT |
| 60 | * acpi_assertion - Assertion number being tested | ||
| 61 | * | 71 | * |
| 62 | * RETURN: AE_BAD_VALUE | 72 | * RETURN: AE_BAD_VALUE |
| 63 | * | 73 | * |
| 64 | * DESCRIPTION: Display failure message and link failure to TDS assertion | 74 | * DESCRIPTION: Display failure message |
| 65 | * | 75 | * |
| 66 | ******************************************************************************/ | 76 | ******************************************************************************/ |
| 67 | 77 | ||
| @@ -166,12 +176,13 @@ acpi_ut_validate_fadt ( | |||
| 166 | * | 176 | * |
| 167 | * RETURN: none | 177 | * RETURN: none |
| 168 | * | 178 | * |
| 169 | * DESCRIPTION: free global memory | 179 | * DESCRIPTION: Free global memory |
| 170 | * | 180 | * |
| 171 | ******************************************************************************/ | 181 | ******************************************************************************/ |
| 172 | 182 | ||
| 173 | void | 183 | static void |
| 174 | acpi_ut_terminate (void) | 184 | acpi_ut_terminate ( |
| 185 | void) | ||
| 175 | { | 186 | { |
| 176 | struct acpi_gpe_block_info *gpe_block; | 187 | struct acpi_gpe_block_info *gpe_block; |
| 177 | struct acpi_gpe_block_info *next_gpe_block; | 188 | struct acpi_gpe_block_info *next_gpe_block; |
| @@ -183,8 +194,6 @@ acpi_ut_terminate (void) | |||
| 183 | 194 | ||
| 184 | 195 | ||
| 185 | /* Free global tables, etc. */ | 196 | /* Free global tables, etc. */ |
| 186 | |||
| 187 | |||
| 188 | /* Free global GPE blocks and related info structures */ | 197 | /* Free global GPE blocks and related info structures */ |
| 189 | 198 | ||
| 190 | gpe_xrupt_info = acpi_gbl_gpe_xrupt_list_head; | 199 | gpe_xrupt_info = acpi_gbl_gpe_xrupt_list_head; |
| @@ -221,7 +230,8 @@ acpi_ut_terminate (void) | |||
| 221 | ******************************************************************************/ | 230 | ******************************************************************************/ |
| 222 | 231 | ||
| 223 | void | 232 | void |
| 224 | acpi_ut_subsystem_shutdown (void) | 233 | acpi_ut_subsystem_shutdown ( |
| 234 | void) | ||
| 225 | { | 235 | { |
| 226 | 236 | ||
| 227 | ACPI_FUNCTION_TRACE ("ut_subsystem_shutdown"); | 237 | ACPI_FUNCTION_TRACE ("ut_subsystem_shutdown"); |
| @@ -229,14 +239,16 @@ acpi_ut_subsystem_shutdown (void) | |||
| 229 | /* Just exit if subsystem is already shutdown */ | 239 | /* Just exit if subsystem is already shutdown */ |
| 230 | 240 | ||
| 231 | if (acpi_gbl_shutdown) { | 241 | if (acpi_gbl_shutdown) { |
| 232 | ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "ACPI Subsystem is already terminated\n")); | 242 | ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, |
| 243 | "ACPI Subsystem is already terminated\n")); | ||
| 233 | return_VOID; | 244 | return_VOID; |
| 234 | } | 245 | } |
| 235 | 246 | ||
| 236 | /* Subsystem appears active, go ahead and shut it down */ | 247 | /* Subsystem appears active, go ahead and shut it down */ |
| 237 | 248 | ||
| 238 | acpi_gbl_shutdown = TRUE; | 249 | acpi_gbl_shutdown = TRUE; |
| 239 | ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Shutting down ACPI Subsystem...\n")); | 250 | ACPI_DEBUG_PRINT ((ACPI_DB_INFO, |
| 251 | "Shutting down ACPI Subsystem...\n")); | ||
| 240 | 252 | ||
| 241 | /* Close the acpi_event Handling */ | 253 | /* Close the acpi_event Handling */ |
| 242 | 254 | ||
