android_kernel_xiaomi_sm8350/drivers/acpi
Linus Torvalds c67c36e4b8 Fix /proc/acpi/alarm BCD alarm encodings
This fixes some totally illogical and wrong code that converts things to
and from BCD mode essentially randomly, does math on values in BCD mode
etc etc.  Introduce a few helper functions to make it a bit more obvious
what is going on, and make sure that we always do all the arithmetic
(and anythign else, for that matter) in binary, not BCD.

Tested by Mark Lord, who found the problem originally, and also pushed
the patch back and reminded me about it.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-25 15:08:03 -07:00
..
dispatcher
events ACPICA: hw: remove use_lock flag from acpi_hw_register_{read, write} 2007-10-10 01:00:26 -04:00
executer
hardware Pull acpica into test branch 2007-10-10 01:00:45 -04:00
namespace
parser
resources
sleep Fix /proc/acpi/alarm BCD alarm encodings 2007-10-25 15:08:03 -07:00
tables ACPI: suppress uninitialized var warning 2007-10-10 00:18:31 -04:00
utilities
ac.c ACPI: AC: Add sysfs interface 2007-09-27 15:50:23 -04:00
acpi_memhotplug.c
asus_acpi.c
battery.c ACPI: Battery: add sysfs alarm 2007-09-27 15:50:22 -04:00
bay.c
blacklist.c
bus.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
button.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
cm_sbs.c
container.c
debug.c
dock.c
ec.c Pull bugzilla-8709 into release branch 2007-10-10 00:30:55 -04:00
event.c ACPI: fix CONFIG_NET=n acpi_bus_generate_netlink_event build failure 2007-09-03 11:15:11 -04:00
fan.c
glue.c
Kconfig Typo: depricated -> deprecated 2007-10-20 03:10:57 +02:00
Makefile ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002) 2007-09-27 15:50:22 -04:00
numa.c
osl.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
power.c
processor_core.c Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-x86 2007-10-19 15:06:00 -07:00
processor_idle.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
sbs.c ACPI: SBS: Add sysfs alarm 2007-09-27 15:50:23 -04:00
sbshc.c ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002) 2007-09-27 15:50:22 -04:00
sbshc.h ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002) 2007-09-27 15:50:22 -04:00
scan.c Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
system.c
tables.c
thermal.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
toshiba_acpi.c more trivial signedness fixes in drivers 2007-10-14 12:41:52 -07:00
utils.c
video.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00