projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5391abf
)
ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro
author
Lv Zheng
<lv.zheng@intel.com>
Thu, 5 May 2016 04:58:32 +0000
(12:58 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 5 May 2016 13:22:27 +0000
(15:22 +0200)
This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acmacros.h
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpica/acmacros.h
b/drivers/acpi/acpica/acmacros.h
index
73f6653
..
ecbaaba
100644
(file)
--- a/
drivers/acpi/acpica/acmacros.h
+++ b/
drivers/acpi/acpica/acmacros.h
@@
-262,7
+262,8
@@
/* Generic (power-of-two) rounding */
-#define ACPI_IS_POWER_OF_TWO(a) (((a) & ((a) - 1)) == 0)
+#define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0)
+#define ACPI_IS_POWER_OF_TWO(a) ACPI_IS_ALIGNED(a, a)
/*
* Bitmask creation