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

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

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 028f038..8d1b382 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);
 
 /**
- * Maximum CPU frequency in Hz
- *
- * Returns maximum frequency of this CPU
- *
- * @return CPU frequency in Hz
- */
-uint64_t odp_cpu_hz_max(void);
-
-/**
  * Maximum CPU frequency of a CPU (in Hz)
  *
  * Returns maximum frequency of specified CPU
diff --git a/platform/linux-generic/include/odp/cpu.h b/platform/linux-generic/include/odp/cpu.h
index 55d59d0..ff61855 100644
--- a/platform/linux-generic/include/odp/cpu.h
+++ b/platform/linux-generic/include/odp/cpu.h
@@ -29,6 +29,11 @@  uint64_t odp_cpu_hz(void);
  */
 uint64_t odp_cpu_hz_id(int id);
 
+/**
+ * Maximum CPU frequency in Hz
+ */
+uint64_t odp_cpu_hz_max(void);
+
 #ifdef __cplusplus
 }
 #endif