From: Hongbo Zhang <hongbo.zh...@linaro.org>

v1->v2 changes:
 - don't create arch/arm/ since there isn't implementation now, use arch/linux
as default choice
 - create symlink to arch/linux/odp_cpu_cycles.c for powerpc, if absent this
arch cannot be compiled
 - add some clean-ups patches 8~11, these patches are against the previous ones
so send them together for better review and merge.

v1 notes:
This patch set separates the CPU info codes into their own platform sepcific
files.
It is common sence that the top general layer call an uniform interface to
initialize some plarform specific data structures, and this uniform interface
is implemented in their own platform specific files.
This patch set makes it.

Hongbo Zhang (11):
  linux-generic: sysinfo: move cpu_arch_str to odp_system_info_t
  linux-generic: sysinfo: use uniform call odp_sysinfo_parser
  linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix
  linux-generic: sysinfo: move x86 system info codes to its plarform
    file
  linux-generic: sysinfo: move MIPS system info codes to its plarform
    file
  linux-generic: sysinfo: move ARM system info codes to default arch
    file
  linux-generic: sysinfo: move PowerPC system info codes to its plarform
    file
  linux-generic: sysinfo: make frequency API return 0 on failure
  linux-generic: sysinfo: set values for cpu_arch_str
  linux-generic: sysinfo: apply per-CPU implementation to MIPS
  linux-generic: sysinfo: apply per-CPU implementation to PowerPC

 configure.ac                                       |   1 +
 include/odp/api/cpu.h                              |   4 +
 platform/linux-generic/Makefile.am                 |  10 +-
 .../linux-generic/arch/linux/odp_sysinfo_parse.c   |  20 ++
 .../linux-generic/arch/mips64/odp_sysinfo_parse.c  |  63 ++++++
 .../linux-generic/arch/powerpc/odp_cpu_cycles.c    |   1 +
 .../linux-generic/arch/powerpc/odp_sysinfo_parse.c |  63 ++++++
 .../linux-generic/arch/x86/odp_sysinfo_parse.c     |  72 +++++++
 platform/linux-generic/include/odp_cpu_internal.h  |   4 +
 platform/linux-generic/include/odp_internal.h      |   1 +
 platform/linux-generic/odp_system_info.c           | 217 +--------------------
 11 files changed, 242 insertions(+), 214 deletions(-)
 create mode 100644 platform/linux-generic/arch/linux/odp_sysinfo_parse.c
 create mode 100644 platform/linux-generic/arch/mips64/odp_sysinfo_parse.c
 create mode 120000 platform/linux-generic/arch/powerpc/odp_cpu_cycles.c
 create mode 100644 platform/linux-generic/arch/powerpc/odp_sysinfo_parse.c
 create mode 100644 platform/linux-generic/arch/x86/odp_sysinfo_parse.c

-- 
2.1.4

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to