ACPICA: Do not repair _TSS return package if _PSS is present
authorFenghua Yu <fenghua.yu@intel.com>
Mon, 4 Jul 2011 08:36:16 +0000 (08:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:21 +0000 (11:40 -0700)
commit3cba74d538d72f649c036df893c2e9895bcfc9df
treee5330c319e6afb8fc6a36c5923a4e5d7d0560513
parent054b93a673c2b39106b02cbef05bfdc3f5ba6150
ACPICA: Do not repair _TSS return package if _PSS is present

commit 8f9c91273e36e5762c617c23e4fd48d5172e0dac upstream.

We can only sort the _TSS return package if there is no _PSS
in the same scope. This is because if _PSS is present, the ACPI
specification dictates that the _TSS Power Dissipation field is
to be ignored, and therefore some BIOSs leave garbage values in
the _TSS Power field(s).  In this case, it is best to just return
the _TSS package as-is.

Reported-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/nspredef.c
drivers/acpi/acpica/nsrepair2.c