summaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/delay.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-alpha/delay.h')
-rw-r--r--include/asm-alpha/delay.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-alpha/delay.h b/include/asm-alpha/delay.h
index 87e69f657..df73028c9 100644
--- a/include/asm-alpha/delay.h
+++ b/include/asm-alpha/delay.h
@@ -35,4 +35,13 @@ extern __inline__ void udelay(unsigned long usecs)
__delay(usecs);
}
+/*
+ * 64-bit integers means we don't have to worry about overflow as
+ * on some other architectures..
+ */
+extern __inline__ unsigned long muldiv(unsigned long a, unsigned long b, unsigned long c)
+{
+ return (a*b)/c;
+}
+
#endif /* defined(__ALPHA_DELAY_H) */