Spdk/test/unit/lib/event
Liu Xiaodong 992b168ee5 reactor: replace last_core() by g_reactor_count
Record result of spdk_env_get_last_core() to
g_reactor_count, since spdk_env_get_last_core()
iterates through all core ids in a loop, it is
not so efficient.

Change-Id: I6bbbfec0bc25490bab33436c84fca3da6380cbe8
Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5955
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-01-20 08:44:56 +00:00
..
app.c event: add pci_allowed/pci_blocked to spdk_app_opts 2020-12-03 09:41:07 +00:00
reactor.c reactor: replace last_core() by g_reactor_count 2021-01-20 08:44:56 +00:00
subsystem.c event: remove subsystem legacy config print 2020-10-21 02:25:45 +00:00
Makefile ut/event: Add unit test for reactor.c 2019-12-20 10:05:38 +00:00