Refactor all thread moves and core stats updates to single function. At this time in series only tsc of main core was modified and only idle tsc of main core was used. Main core would be either the destination core or the source core. In both cases, the idle time for main core had to be updated. This patch generalizes this logic to always move the execution time from source core to destination core. As a byproduct cores besides main core have the stats updated, which will be useful later in the series. Once core load will be the deciding factor for choosing a core. Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I57564e8b2632f919869d74e8f10b01fb3dda3be9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6658 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> |
||
---|---|---|
.. | ||
app_rpc.c | ||
app.c | ||
dpdk_governor.c | ||
gscheduler.c | ||
log_rpc.c | ||
Makefile | ||
reactor.c | ||
scheduler_dynamic.c | ||
scheduler_static.c | ||
spdk_event.map |