aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-05-05 00:58:32 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-05-05 09:22:27 -0400
commite35d75024b28083b0a84cdb73b826f8450b29d49 (patch)
tree0395f9d8c7a603243011ba6985631bde0ba8cdfb
parent5391abfdae7fc61556af4dd115e7522985fc9998 (diff)
ACPICA: Utilities: Add ACPI_IS_ALIGNED() macro
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>
-rw-r--r--drivers/acpi/acpica/acmacros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h
index 73f6653c848d..ecbaabae59e7 100644
--- a/drivers/acpi/acpica/acmacros.h
+++ b/drivers/acpi/acpica/acmacros.h
@@ -262,7 +262,8 @@
262 262
263/* Generic (power-of-two) rounding */ 263/* Generic (power-of-two) rounding */
264 264
265#define ACPI_IS_POWER_OF_TWO(a) (((a) & ((a) - 1)) == 0) 265#define ACPI_IS_ALIGNED(a, s) (((a) & ((s) - 1)) == 0)
266#define ACPI_IS_POWER_OF_TWO(a) ACPI_IS_ALIGNED(a, a)
266 267
267/* 268/*
268 * Bitmask creation 269 * Bitmask creation