average: remove out-of-line implementation
[linux-2.6-block.git] / include / linux / average.h
index 60f8226c5652986f87b8d638538d9d935037d1aa..d04aa58280ded5694bbde3638ec602269635a988 100644 (file)
@@ -3,30 +3,6 @@
 
 /* Exponentially weighted moving average (EWMA) */
 
-/* For more documentation see lib/average.c */
-
-struct ewma {
-       unsigned long internal;
-       unsigned long factor;
-       unsigned long weight;
-};
-
-extern void ewma_init(struct ewma *avg, unsigned long factor,
-                     unsigned long weight);
-
-extern struct ewma *ewma_add(struct ewma *avg, unsigned long val);
-
-/**
- * ewma_read() - Get average value
- * @avg: Average structure
- *
- * Returns the average value held in @avg.
- */
-static inline unsigned long ewma_read(const struct ewma *avg)
-{
-       return avg->internal >> avg->factor;
-}
-
 #define DECLARE_EWMA(name, _factor, _weight)                           \
        struct ewma_##name {                                            \
                unsigned long internal;                                 \