android_kernel_xiaomi_sm8350/drivers/acpi
Lin Ming b9d1312ad4 ACPICA: Fix for implicit return compatibility
Predicate can be used for an implicit return value.
This change improves the implicit return mechanism to be more
compatible with the MS interpreter.

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

Below AML code from http://bugzilla.kernel.org/show_bug.cgi?id=10686

	Store(0x07D6, OSYS)
	Method (_CRT, 0, Serialized)
	{
	    If (LLess (OSYS, 0x07D6))
	    {
		If (LEqual (\_SB.TJ85, Zero))
		{
		    Return (Add (0x0AAC, Multiply (TPC, 0x0A)))
		}
		Else
		{
		    Return (Add (0x0AAC, Multiply (TP85, 0x0A)))
		}
	    }
	}

Previously _CRT returns 0x07D6, now it returns 0 (predicate value of LLess)

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-10-22 23:14:49 -04:00
..
dispatcher ACPICA: Fix for implicit return compatibility 2008-10-22 23:14:49 -04:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Cleanup for internal Reference Object 2008-10-22 23:14:45 -04:00
hardware ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
namespace ACPICA: Fix possible memory leak in acpi_ns_get_external_pathname 2008-10-22 23:14:45 -04:00
parser ACPICA: Fixed a couple memory leaks associated with "implicit return" 2008-10-22 23:14:48 -04:00
resources ACPICA: Cleanup for internal Reference Object 2008-10-22 23:14:45 -04:00
sleep ACPI: Make /proc/acpi/wakeup interface handle PCI devices (again) 2008-10-03 18:22:19 -07:00
tables ACPICA: Fix table compare code, length then data 2008-10-22 23:14:36 -04:00
utilities ACPICA: Optimize buffer allocation procedure 2008-10-22 23:14:48 -04:00
ac.c ACPI: no AC status notification 2008-06-14 01:26:37 -04:00
acpi_memhotplug.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
asus_acpi.c Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
battery.c
bay.c APCI: revert duplicated patch 2008-07-20 17:14:57 -07:00
blacklist.c
bus.c Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
button.c
cm_sbs.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
container.c
debug.c ACPICA: Remove obsolete debug levels (WARN and ERROR) 2008-10-22 23:14:42 -04:00
dock.c ACPI: Properly clear flags on false-positives and send uevent on sudden unplug 2008-08-15 03:02:42 +02:00
ec.c ACPI: Avoid bogus EC timeout when EC is in Polling mode 2008-08-15 03:13:06 +02:00
event.c
fan.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
glue.c ACPI: Make /proc/acpi/wakeup interface handle PCI devices (again) 2008-10-03 18:22:19 -07:00
Kconfig Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
Makefile Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6 2008-07-16 17:25:46 -07:00
numa.c ACPICA: Update DMAR and SRAT table definitions 2008-07-16 23:27:04 +02:00
osl.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
pci_bind.c
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c ACPI: bounds check IRQ to prevent memory corruption 2008-08-15 03:17:07 +02:00
pci_root.c
pci_slot.c PCI: fix bogus "'device' may be used uninitialized" warning in pci_slot 2008-07-28 15:06:00 -07:00
power.c ACPI: Introduce new device wakeup flag 'prepared' 2008-07-07 16:26:14 -07:00
processor_core.c Merge branch 'compal-fix' into release-2.6.27 2008-08-21 08:44:21 +02:00
processor_idle.c acpi: trivial cleanups 2008-08-15 02:29:06 +02:00
processor_perflib.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
processor_thermal.c
processor_throttling.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
reboot.c Add the ability to reset the machine using the RESET_REG in ACPI's FADT table. 2008-07-16 23:27:08 +02:00
sbs.c
sbshc.c ACPI: Avoid bogus timeout about SMbus check 2008-09-04 14:32:28 +02:00
sbshc.h
scan.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
system.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
toshiba_acpi.c
utils.c
video.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
wmi.c ACPI: WMI: Set instance for query block calls 2008-08-15 02:25:01 +02:00