ACPICA: Add several repairs for _CST predefined name
authorLv Zheng <lv.zheng@intel.com>
Sat, 8 Jun 2013 01:01:07 +0000 (09:01 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Jun 2013 23:39:09 +0000 (01:39 +0200)
commit5a9792f3be74bfad2985b3f4c7afc9e6f6a3f798
treea022831452c1378dde4a952e081c787418ca672b
parentaa6329c44bccedbd8b17094c1c1aee1d9a9de461
ACPICA: Add several repairs for _CST predefined name

Sort list based on the C-state, remove invalid/zero entries.
ACPICA BZ 890. Lv Zheng.

Fixes these possible problems with the _CST object:
 1. Sort the list ascending by C state type.
 2. Ensure type cannot be zero.
 3. A sub-package count of zero means _CST is meaningless.
 4. Count must match the number of C state sub-packages.

References: https://bugs.acpica.org/show_bug.cgi?id=890
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nspredef.c
drivers/acpi/acpica/nsrepair2.c