summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/math64.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/math64.h b/include/linux/math64.h
index 08584c8f237..eaa9fd5b968 100644
--- a/include/linux/math64.h
+++ b/include/linux/math64.h
@@ -48,6 +48,9 @@ static inline u64 div64_u64(u64 dividend, u64 divisor)
return dividend / divisor;
}
+#define DIV64_U64_ROUND_UP(ll, d) \
+ ({ u64 _tmp = (d); div64_u64((ll) + _tmp - 1, _tmp); })
+
/**
* div64_s64 - signed 64bit divide with 64bit divisor
*/