Skip to content

Commit

Permalink
ACPICA: Simplify configuration for "Max Loops" system parameter
Browse files Browse the repository at this point in the history
ACPICA commit 857c510d70e18eecc275dd3087807a18bae8aa51

Allow for static configuration of this parameter. It is used
to abort out of infinite loops caused by non-response from
hardware.

Link: https://github.com/acpica/acpica/commit/857c510d
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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Aug 13, 2016
1 parent 7c312ad commit 02dcdc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/acpica/utinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ acpi_status acpi_ut_init_globals(void)
acpi_gbl_next_owner_id_offset = 0;
acpi_gbl_debugger_configuration = DEBUGGER_THREADING;
acpi_gbl_osi_mutex = NULL;
acpi_gbl_max_loop_iterations = 0xFFFF;
acpi_gbl_max_loop_iterations = ACPI_MAX_LOOP_COUNT;

/* Hardware oriented */

Expand Down
4 changes: 4 additions & 0 deletions include/acpi/acconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@

#define ACPI_ADDRESS_RANGE_MAX 2

/* Maximum number of While() loops before abort */

#define ACPI_MAX_LOOP_COUNT 0xFFFF

/******************************************************************************
*
* ACPI Specification constants (Do not change unless the specification changes)
Expand Down

0 comments on commit 02dcdc3

Please sign in to comment.