aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 74b1ee9027f5..0c9bc231107f 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -93,7 +93,8 @@
93#define DIV_ROUND_DOWN_ULL(ll, d) \ 93#define DIV_ROUND_DOWN_ULL(ll, d) \
94 ({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; }) 94 ({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; })
95 95
96#define DIV_ROUND_UP_ULL(ll, d) DIV_ROUND_DOWN_ULL((ll) + (d) - 1, (d)) 96#define DIV_ROUND_UP_ULL(ll, d) \
97 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
97 98
98#if BITS_PER_LONG == 32 99#if BITS_PER_LONG == 32
99# define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d) 100# define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP_ULL(ll, d)