commit | ade6d4a2ec57d258bc181a155288c267dd8cf094 | [log] [tgz] |
---|---|---|
author | Thomas Huehn <thomas@net.t-labs.tu-berlin.de> | Tue Mar 24 21:09:42 2015 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Wed Apr 01 20:44:33 2015 +0200 |
tree | 60df72e1b0f08c2f544a5ae4cfcec181f5ae0de1 | |
parent | 50e55a8ea76fb593403cc09767b6371c17364ba8 [diff] |
mac80211: reduce calculation costs of EWMA This patch reduces the calculation costs of the EWMA macro from "2x multiplication and 1 addition" down to "1x multiplication and 2x additions". This slightly improves performance depending on the CPU architecture. Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> Acked-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>