examples/l3fwd-power: fix frequency detection
authorNikhil Agarwal <nikhil.agarwal@linaro.org>
Tue, 12 Dec 2017 10:08:24 +0000 (15:38 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jan 2018 17:40:11 +0000 (18:40 +0100)
commit63de7e6e4fb507755c8306cb50ef27b85c8f6f2d
tree58b5440653a533d3d1896c8e04954fb469cfd063
parent4ffc0a883b233969ba6ce38b8c21c62153751a45
examples/l3fwd-power: fix frequency detection

The code assumes that the platform frequency is 2GHz.
This patch add support for dynamically detecting platform frequence.

Fixes: d7937e2e3d12 ("power: initial import")
Cc: stable@dpdk.org
Signed-off-by: Nikhil Agarwal <nikhil.agarwal@linaro.org>
Acked-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/main.c