ACPICA: Utilities: Add power of two rounding support
authorLv Zheng <lv.zheng@intel.com>
Wed, 28 Dec 2016 07:28:29 +0000 (15:28 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jan 2017 22:18:38 +0000 (23:18 +0100)
commitcc573b97c89e5262d5404bc515a4c1e7eb364fff
tree369c7d9a4fb5d59d14f34a75a452df3373984018
parentdc4c7376657573a73e75df2d7b094ae40a859f98
ACPICA: Utilities: Add power of two rounding support

ACPICA commit cbb0294649cbd7e8bd6107e4329461a6a7a0d967

This patch adds power of two rounding support up to 32 bits.

The result of the shift operations rearching to the boundary of the cpu
word is unpredicatable, so 64-bit roundings are not supported in order to
make sure no rounded shift-overs.

This support may not be performance friendly, so the APIs might be
overridden by the hosts implementations with ACPI_USE_NATIVE_BIT_FINDER
defined.

Link: https://github.com/acpica/acpica/commit/cbb02946
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/acmacros.h