summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasufumi Ogawa <yasufum.o@gmail.com>2019-09-12 20:40:05 +0900
committerYasufumi Ogawa <yasufum.o@gmail.com>2019-10-04 22:06:14 +0900
commit53946681622a35bab565488b478680f0030ba3b1 (patch)
tree4e8cdafd84cdabd6748d1f28cbd4b93f91988ae9
parenta2eabe0657177dd6c2ecf4f9ef6bb823ed57bb5a (diff)
downloadspp-53946681622a35bab565488b478680f0030ba3b1.zip
spp-53946681622a35bab565488b478680f0030ba3b1.tar.gz
spp-53946681622a35bab565488b478680f0030ba3b1.tar.xz
shared: remove unused spp_get_component_core
spp_get_component_core() is used for getting information of given lcore ID, but not used from anywhere. Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
-rw-r--r--src/shared/secondary/spp_worker_th/cmd_utils.c9
-rw-r--r--src/shared/secondary/spp_worker_th/cmd_utils.h8
2 files changed, 0 insertions, 17 deletions
diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.c b/src/shared/secondary/spp_worker_th/cmd_utils.c
index 2c50dcd..15ceb6f 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.c
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.c
@@ -499,15 +499,6 @@ spp_get_component_type(int id)
return component_info->wk_type;
}
-/* Get core ID of target component */
-unsigned int
-spp_get_component_core(int component_id)
-{
- struct sppwk_comp_info *info =
- (g_mng_data.p_component_info + component_id);
- return info->lcore_id;
-}
-
/* Get core information which is in use */
struct core_info *
get_core_info(unsigned int lcore_id)
diff --git a/src/shared/secondary/spp_worker_th/cmd_utils.h b/src/shared/secondary/spp_worker_th/cmd_utils.h
index c778151..fb68905 100644
--- a/src/shared/secondary/spp_worker_th/cmd_utils.h
+++ b/src/shared/secondary/spp_worker_th/cmd_utils.h
@@ -204,14 +204,6 @@ int init_mng_data(void);
/* Remove sock file if spp is not running */
void del_vhost_sockfile(struct sppwk_port_info *vhost);
-/**
- * Get core ID of target component
- *
- * @param component_id Unique component ID.
- * @return Logical core id of specified component.
- */
-unsigned int spp_get_component_core(int component_id);
-
/* Get core information which is in use */
struct core_info *get_core_info(unsigned int lcore_id);