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

Message ID 1450349234-26340-8-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().

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

Patch

diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h
index 8a804d4..e354909 100644
--- a/include/odp/api/cpu.h
+++ b/include/odp/api/cpu.h
@@ -66,15 +66,6 @@  const char *odp_cpu_model_str(void);
 const char *odp_cpu_model_str_id(int id);
 
 /**
- * Current CPU frequency in Hz
- *
- * Returns current frequency of this CPU
- *
- * @return CPU frequency in Hz
- */
-uint64_t odp_cpu_hz(void);
-
-/**
  * Current CPU frequency of a CPU (in Hz)
  *
  * Returns current frequency of specified CPU
diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h
index b5b5320..69b9eb6 100644
--- a/platform/linux-generic/include/odp/cpu.h
+++ b/platform/linux-generic/include/odp/cpu.h
@@ -19,6 +19,11 @@  extern "C" {
 
 #include <odp/api/cpu.h>
 
+/**
+ * Current CPU frequency in Hz
+ */
+uint64_t odp_cpu_hz(void);
+
 #ifdef __cplusplus
 }
 #endif