Introduce a new random number function to get a floating point value. Then use it to fix PIE scheduler.
v5 - use divide method (similar to FreeBSD) it takes same number of cycles (after optimization) and works on all platforms. Stephen Hemminger (3): random: add rte_drand() function rte_pie: remove unnecessary floating point rte_pie: fix incorrect floating point math Stephen Hemminger (3): random: add rte_drand() function rte_pie: remove unnecessary floating point rte_pie: fix incorrect floating point math app/test/test_rand_perf.c | 7 +++++++ doc/guides/rel_notes/release_22_07.rst | 5 +++++ lib/eal/common/rte_random.c | 19 +++++++++++++++++++ lib/eal/include/rte_random.h | 18 ++++++++++++++++++ lib/eal/version.map | 1 + lib/sched/rte_pie.h | 7 ++----- 6 files changed, 52 insertions(+), 5 deletions(-) Series-Acked-by: Morten Brørup <m...@smartsharesystems.com> -- 2.35.1