5deb90b002
This sleep functionality is only really used by the stub app currently. nvmf target enables it, but it never gets exercised since there is always a poller running on each core. So don't bother trying to count how long the reactor didn't take action - try to sleep any time where the loop did not take action. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: If48cc3f989347811190de67a6423932d0b77cf45 Reviewed-on: https://review.gerrithub.io/423577 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>