ACPICA: Add repair for predefined methods that return nested packages
authorBob Moore <robert.moore@intel.com>
Fri, 24 Jul 2009 03:03:09 +0000 (11:03 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 23:40:38 +0000 (19:40 -0400)
commite5f69d6ef7a6b0dbad8d4c00d83009960be02155
treefac155941c084b22c566b4931c67ab098a1488ee
parentb2deadd53c3630786e73746fb0ad8450f4e015bf
ACPICA: Add repair for predefined methods that return nested packages

Fixes a problem where a predefined method is defined to return
a variable-length Package of sub-packages. If the length is one,
the BIOS code occasionally creates a simple single package with
no sub-packages. This code attempts to fix the problem by wrapping
a new package object around the existing package. ACPICA BZ 790.

http://acpica.org/bugzilla/show_bug.cgi?id=790

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/acnamesp.h
drivers/acpi/acpica/nspredef.c
drivers/acpi/acpica/nsrepair.c