diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-08-19 10:46:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-21 00:10:23 +0300 |
commit | f4e774f55fe0bb568a0877b2eb9e1b4b5a6f5cbc (patch) | |
tree | 60195c628836ff931a160cb90ca779e4832119ba /include/linux/average.h | |
parent | 11ab35ed0457a4b7914358986a67064ecb467e7d (diff) | |
download | linux-f4e774f55fe0bb568a0877b2eb9e1b4b5a6f5cbc.tar.xz |
average: remove out-of-line implementation
Since all users are now converted to the inline implementation,
remove the out-of-line implementation entirely.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/average.h')
-rw-r--r-- | include/linux/average.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/average.h b/include/linux/average.h index 60f8226c5652..d04aa58280de 100644 --- a/include/linux/average.h +++ b/include/linux/average.h @@ -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; \ |