aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utglobal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/utglobal.c')
-rw-r--r--drivers/acpi/acpica/utglobal.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/drivers/acpi/acpica/utglobal.c b/drivers/acpi/acpica/utglobal.c
index 030cb0dc673c..f3abeae9d2f8 100644
--- a/drivers/acpi/acpica/utglobal.c
+++ b/drivers/acpi/acpica/utglobal.c
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2013, Intel Corp. 8 * Copyright (C) 2000 - 2014, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -55,31 +55,27 @@ ACPI_MODULE_NAME("utglobal")
55 * Static global variable initialization. 55 * Static global variable initialization.
56 * 56 *
57 ******************************************************************************/ 57 ******************************************************************************/
58/* 58/* Debug output control masks */
59 * We want the debug switches statically initialized so they
60 * are already set when the debugger is entered.
61 */
62/* Debug switch - level and trace mask */
63u32 acpi_dbg_level = ACPI_DEBUG_DEFAULT; 59u32 acpi_dbg_level = ACPI_DEBUG_DEFAULT;
64 60
65/* Debug switch - layer (component) mask */
66
67u32 acpi_dbg_layer = 0; 61u32 acpi_dbg_layer = 0;
68u32 acpi_gbl_nesting_level = 0;
69 62
70/* Debugger globals */ 63/* acpi_gbl_FADT is a local copy of the FADT, converted to a common format. */
71 64
72u8 acpi_gbl_db_terminate_threads = FALSE; 65struct acpi_table_fadt acpi_gbl_FADT;
73u8 acpi_gbl_abort_method = FALSE; 66u32 acpi_gbl_trace_flags;
74u8 acpi_gbl_method_executing = FALSE; 67acpi_name acpi_gbl_trace_method_name;
68u8 acpi_gbl_system_awake_and_running;
69u32 acpi_current_gpe_count;
75 70
76/* System flags */ 71/*
77 72 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
78u32 acpi_gbl_startup_flags = 0; 73 * that the ACPI hardware is no longer required. A flag in the FADT indicates
79 74 * a reduced HW machine, and that flag is duplicated here for convenience.
80/* System starts uninitialized */ 75 */
76u8 acpi_gbl_reduced_hardware;
81 77
82u8 acpi_gbl_shutdown = TRUE; 78/* Various state name strings */
83 79
84const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT] = { 80const char *acpi_gbl_sleep_state_names[ACPI_S_STATE_COUNT] = {
85 "\\_S0_", 81 "\\_S0_",
@@ -335,7 +331,6 @@ acpi_status acpi_ut_init_globals(void)
335 331
336 acpi_gbl_DSDT = NULL; 332 acpi_gbl_DSDT = NULL;
337 acpi_gbl_cm_single_step = FALSE; 333 acpi_gbl_cm_single_step = FALSE;
338 acpi_gbl_db_terminate_threads = FALSE;
339 acpi_gbl_shutdown = FALSE; 334 acpi_gbl_shutdown = FALSE;
340 acpi_gbl_ns_lookup_count = 0; 335 acpi_gbl_ns_lookup_count = 0;
341 acpi_gbl_ps_find_count = 0; 336 acpi_gbl_ps_find_count = 0;
@@ -382,6 +377,10 @@ acpi_status acpi_ut_init_globals(void)
382 acpi_gbl_disable_mem_tracking = FALSE; 377 acpi_gbl_disable_mem_tracking = FALSE;
383#endif 378#endif
384 379
380#ifdef ACPI_DEBUGGER
381 acpi_gbl_db_terminate_threads = FALSE;
382#endif
383
385 return_ACPI_STATUS(AE_OK); 384 return_ACPI_STATUS(AE_OK);
386} 385}
387 386