diff options
| author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:45:09 -0700 |
|---|---|---|
| committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-01-24 23:06:49 +0530 |
| commit | e4789b0d5b354ac27f3879276ce92a7e169328ad (patch) | |
| tree | 4f4282d4cf51f91bcb45e58bc87a7a56bbc28879 /include/linux/kernel.h | |
| parent | 28de7505a73fcbf5561a3f39686f5f54d969fdfe (diff) | |
| download | u-boot-e4789b0d5b354ac27f3879276ce92a7e169328ad.tar.gz u-boot-e4789b0d5b354ac27f3879276ce92a7e169328ad.tar.xz u-boot-e4789b0d5b354ac27f3879276ce92a7e169328ad.zip | |
common: Move ROUND() into kernel.h
Move this macro in with all the other rounding macros.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/linux/kernel.h')
| -rw-r--r-- | include/linux/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index fefbc07375..b88c210065 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -69,6 +69,8 @@ #define DIV_ROUND_UP_ULL(ll, d) DIV_ROUND_DOWN_ULL((ll) + (d) - 1, (d)) +#define ROUND(a, b) (((a) + (b) - 1) & ~((b) - 1)) + #if BITS_PER_LONG == 32 # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d) #else |
