Displaying 1 result from an estimated 1 matches for "2c1985d90474".
2016 Sep 16
1
[PATCH] volt: use kernel's 64-bit signed division function
...div64_s64((s64)info.arg[1] * volt->speedo, 10);
+ result += div64_s64((s64)info.arg[2] * volt->speedo * volt->speedo, 100000);
} else if (ver == 0x20) {
switch (info.mode) {
/* 0x0 handled above! */
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h
index b45a1862436e..2c1985d90474 100644
--- a/lib/include/nvif/os.h
+++ b/lib/include/nvif/os.h
@@ -88,6 +88,7 @@ typedef dma_addr_t resource_size_t;
)
#define do_div(a,b) (a) = (a) / (b)
#define div_u64(a,b) (a) / (b)
+#define div64_s64(a,b) (a) / (b)
#define likely(a) (a)
#define unlikely(a) (a)
#define BIT(a) (1UL <<...