[PATCHv3,1/3] linux-generic: odp_schedule: drop prefix odp on internal functions

Message ID 1460447801-8686-2-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell April 12, 2016, 7:56 a.m.
Internal functions shouldn't have use the prefix odp only the public
API.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 platform/linux-generic/include/odp_schedule_internal.h | 2 +-
 platform/linux-generic/odp_schedule.c                  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/platform/linux-generic/include/odp_schedule_internal.h b/platform/linux-generic/include/odp_schedule_internal.h
index fe8ff7b..8a8c932 100644
--- a/platform/linux-generic/include/odp_schedule_internal.h
+++ b/platform/linux-generic/include/odp_schedule_internal.h
@@ -25,7 +25,7 @@  void schedule_queue_destroy(queue_entry_t *qe);
 int schedule_queue(const queue_entry_t *qe);
 void schedule_pktio_start(odp_pktio_t pktio, int num_in_queue,
 			  int in_queue_idx[]);
-void odp_schedule_release_context(void);
+void _schedule_release_context(void);
 
 #ifdef __cplusplus
 }
diff --git a/platform/linux-generic/odp_schedule.c b/platform/linux-generic/odp_schedule.c
index 2e24079..bcb8b92 100644
--- a/platform/linux-generic/odp_schedule.c
+++ b/platform/linux-generic/odp_schedule.c
@@ -301,7 +301,7 @@  int odp_schedule_term_local(void)
 		return -1;
 	}
 
-	odp_schedule_release_context();
+	_schedule_release_context();
 
 	sched_local_init();
 	return 0;
@@ -452,7 +452,7 @@  void odp_schedule_release_ordered(void)
 	}
 }
 
-void odp_schedule_release_context(void)
+void _schedule_release_context(void)
 {
 	if (sched_local.origin_qe) {
 		release_order(sched_local.origin_qe, sched_local.order,
@@ -501,7 +501,7 @@  static int schedule(odp_queue_t *out_queue, odp_event_t out_ev[],
 		return ret;
 	}
 
-	odp_schedule_release_context();
+	_schedule_release_context();
 
 	if (odp_unlikely(sched_local.pause))
 		return 0;