[API-NEXT,10/10] api: sysinfo: move odp_cpu_hz_max_id() for linux-generic internal

Message ID 1450349234-26340-11-git-send-email-hongbo.zhang@freescale.com
State New
Headers show

Commit Message

hongbo.zhang@freescale.com Dec. 17, 2015, 10:47 a.m.
From: Hongbo Zhang <hongbo.zhang@linaro.org>

All CPU frequency APIs are moved for linux-generic internal, this patch
moves the declaration of odp_cpu_hz_max_id().

Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
---
 include/odp/api/cpu.h                    | 11 -----------
 platform/linux-generic/include/odp/cpu.h |  5 +++++
 2 files changed, 5 insertions(+), 11 deletions(-)

Patch

diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h
index 8d1b382..f985515 100644
--- a/include/odp/api/cpu.h
+++ b/include/odp/api/cpu.h
@@ -66,17 +66,6 @@  const char *odp_cpu_model_str(void);
 const char *odp_cpu_model_str_id(int id);
 
 /**
- * Maximum CPU frequency of a CPU (in Hz)
- *
- * Returns maximum frequency of specified CPU
- *
- * @param id    CPU ID
- *
- * @return CPU frequency in Hz
- */
-uint64_t odp_cpu_hz_max_id(int id);
-
-/**
  * Current CPU cycle count
  *
  * Return current CPU cycle count. Cycle count may not be reset at ODP init
diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h
index ff61855..7edb10b 100644
--- a/platform/linux-generic/include/odp/cpu.h
+++ b/platform/linux-generic/include/odp/cpu.h
@@ -34,6 +34,11 @@  uint64_t odp_cpu_hz_id(int id);
  */
 uint64_t odp_cpu_hz_max(void);
 
+/**
+ * Maximum CPU frequency of specified CPU (in Hz)
+ */
+uint64_t odp_cpu_hz_max_id(int id);
+
 #ifdef __cplusplus
 }
 #endif