+17
−0
+29
−0
Loading
Add an new API spdk_thread_set_cpumask() and enum SPDK_THREAD_OP_RESCHED. spdk_thread_set_cpumask() can be called only from the current thread and requires SPDK thread operation supports reschedule operation. spdk_thread_set_cpumask() updates the cpumask of the current thread to the specified value, and then invokes framework's reschedule operation to the thread. If spdk_thread_set_cpumask() calls multiple times in a single spdk_thread_poll() context, the last value will be used in the reschedule operation. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I7808626b10269543c1e2cd86793a504daa4b6389 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/499 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>