Commit e12a4f6e authored by Ben Walker's avatar Ben Walker Committed by Tomasz Zawadzki
Browse files

Revert "thread: add spdk_env_get_primary_core"



This reverts commit 6194cb2e.

It's unclear whether we need to add a new API for the env layer
for upcoming work. Nothing currently uses it. When we have a clear
need, we can add this back in.

Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Change-Id: I174276799d650a1365b37a737271a54a796cd455
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3561


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 35599b77
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -468,13 +468,6 @@ uint32_t spdk_env_get_core_count(void);
 */
uint32_t spdk_env_get_current_core(void);

/**
 * Get the index of the primary dedicated CPU core for this application.
 *
 * \return the index of the primary dedicated CPU core.
 */
uint32_t spdk_env_get_primary_core(void);

/**
 * Get the index of the first dedicated CPU core for this application.
 *
+0 −1
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@
	spdk_mempool_lookup;
	spdk_env_get_core_count;
	spdk_env_get_current_core;
	spdk_env_get_primary_core;
	spdk_env_get_first_core;
	spdk_env_get_last_core;
	spdk_env_get_next_core;
+0 −6
Original line number Diff line number Diff line
@@ -48,12 +48,6 @@ spdk_env_get_current_core(void)
	return rte_lcore_id();
}

uint32_t
spdk_env_get_primary_core(void)
{
	return rte_get_master_lcore();
}

uint32_t
spdk_env_get_first_core(void)
{