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

Message ID 1450349234-26340-9-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_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 e354909..028f038 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);
 
 /**
- * Current CPU frequency of a CPU (in Hz)
- *
- * Returns current frequency of specified CPU
- *
- * @param id    CPU ID
- *
- * @return CPU frequency in Hz
- */
-uint64_t odp_cpu_hz_id(int id);
-
-/**
  * Maximum CPU frequency in Hz
  *
  * Returns maximum frequency of this CPU
diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h
index 69b9eb6..55d59d0 100644
--- a/platform/linux-generic/include/odp/cpu.h
+++ b/platform/linux-generic/include/odp/cpu.h
@@ -24,6 +24,11 @@  extern "C" {
  */
 uint64_t odp_cpu_hz(void);
 
+/**
+ * Current CPU frequency of specified CPU (in Hz)
+ */
+uint64_t odp_cpu_hz_id(int id);
+
 #ifdef __cplusplus
 }
 #endif