diff options
| -rw-r--r-- | include/linux/net_dim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/net_dim.h b/include/linux/net_dim.h index bebeaad897cc..29ed8fd6379a 100644 --- a/include/linux/net_dim.h +++ b/include/linux/net_dim.h | |||
| @@ -231,7 +231,7 @@ static inline void net_dim_exit_parking(struct net_dim *dim) | |||
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | #define IS_SIGNIFICANT_DIFF(val, ref) \ | 233 | #define IS_SIGNIFICANT_DIFF(val, ref) \ |
| 234 | (((100 * abs((val) - (ref))) / (ref)) > 10) /* more than 10% difference */ | 234 | (((100UL * abs((val) - (ref))) / (ref)) > 10) /* more than 10% difference */ |
| 235 | 235 | ||
| 236 | static inline int net_dim_stats_compare(struct net_dim_stats *curr, | 236 | static inline int net_dim_stats_compare(struct net_dim_stats *curr, |
| 237 | struct net_dim_stats *prev) | 237 | struct net_dim_stats *prev) |
