diff mbox

[V2] odp_coremask: Add const to the mask

Message ID 1396150114-25411-1-git-send-email-mike.holmes@linaro.org
State Accepted
Headers show

Commit Message

Mike Holmes March 30, 2014, 3:28 a.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 include/odp_coremask.h                       | 4 ++--
 platform/linux-generic/source/odp_coremask.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/include/odp_coremask.h b/include/odp_coremask.h
index 1aeec3e..163de22 100644
--- a/include/odp_coremask.h
+++ b/include/odp_coremask.h
@@ -111,14 +111,14 @@  void odp_coremask_clr(int core, odp_coremask_t *mask);
  * @param mask  Core mask to check if core num set or not
  * @return      non-zero if set otherwise 0
  */
-int odp_coremask_isset(int core, odp_coremask_t *mask);
+int odp_coremask_isset(int core, const odp_coremask_t *mask);
 
 /**
  * Count number of cores in mask
  * @param mask  Core mask
  * @return coremask count
  */
-int odp_coremask_count(odp_coremask_t *mask);
+int odp_coremask_count(const odp_coremask_t *mask);
 
 
 
diff --git a/platform/linux-generic/source/odp_coremask.c b/platform/linux-generic/source/odp_coremask.c
index 50f303e..22be78f 100644
--- a/platform/linux-generic/source/odp_coremask.c
+++ b/platform/linux-generic/source/odp_coremask.c
@@ -83,7 +83,7 @@  void odp_coremask_clr(int core, odp_coremask_t *mask)
 }
 
 
-int odp_coremask_isset(int core, odp_coremask_t *mask)
+int odp_coremask_isset(int core, const odp_coremask_t *mask)
 {
 	/* should not be more than 63
 	 * core no. should be from 0..63= 64bit
@@ -96,7 +96,7 @@  int odp_coremask_isset(int core, odp_coremask_t *mask)
 	return (mask->_u64[0] >> core) & 1;
 }
 
-int odp_coremask_count(odp_coremask_t *mask)
+int odp_coremask_count(const odp_coremask_t *mask)
 {
 	uint64_t coremask = mask->_u64[0];
 	int cnt = 0;