diff mbox series

[v1,1/3] linux-gen: arch: remove unused powerpc files

Message ID 1513861209-18790-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/3] linux-gen: arch: remove unused powerpc files | expand

Commit Message

Github ODP bot Dec. 21, 2017, 1 p.m. UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


These C files were not built.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 358 (psavol:master-arch-dir-cleanup)
 ** https://github.com/Linaro/odp/pull/358
 ** Patch: https://github.com/Linaro/odp/pull/358.patch
 ** Base sha: 6b5cdc77eb9759a2349b10372a964648559bc92c
 ** Merge commit sha: 93353441d4d0b5d0d679401db0daaef8f7f26ee1
 **/
 platform/linux-generic/arch/powerpc/odp_cpu_arch.c | 41 ----------------------
 .../linux-generic/arch/powerpc/odp_global_time.c   | 15 --------
 2 files changed, 56 deletions(-)
 delete mode 100644 platform/linux-generic/arch/powerpc/odp_cpu_arch.c
 delete mode 100644 platform/linux-generic/arch/powerpc/odp_global_time.c
diff mbox series

Patch

diff --git a/platform/linux-generic/arch/powerpc/odp_cpu_arch.c b/platform/linux-generic/arch/powerpc/odp_cpu_arch.c
deleted file mode 100644
index 6a16f13a2..000000000
--- a/platform/linux-generic/arch/powerpc/odp_cpu_arch.c
+++ /dev/null
@@ -1,41 +0,0 @@ 
-/* Copyright (c) 2015, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier:     BSD-3-Clause
- */
-
-#include "config.h"
-
-#include <odp_posix_extensions.h>
-
-#include <stdlib.h>
-#include <time.h>
-
-#include <odp/api/cpu.h>
-#include <odp/api/hints.h>
-#include <odp/api/system_info.h>
-#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
-
-#define GIGA 1000000000
-
-uint64_t odp_cpu_cycles(void)
-{
-	struct timespec time;
-	uint64_t sec, ns, hz, cycles;
-	int ret;
-
-	ret = clock_gettime(CLOCK_MONOTONIC_RAW, &time);
-
-	if (ret != 0)
-		ODP_ABORT("clock_gettime failed\n");
-
-	hz  = odp_cpu_hz_max();
-	sec = (uint64_t)time.tv_sec;
-	ns  = (uint64_t)time.tv_nsec;
-
-	cycles  = sec * hz;
-	cycles += (ns * hz) / GIGA;
-
-	return cycles;
-}
diff --git a/platform/linux-generic/arch/powerpc/odp_global_time.c b/platform/linux-generic/arch/powerpc/odp_global_time.c
deleted file mode 100644
index d54ba6bc8..000000000
--- a/platform/linux-generic/arch/powerpc/odp_global_time.c
+++ /dev/null
@@ -1,15 +0,0 @@ 
-
-int cpu_has_global_time(void)
-{
-	return 0;
-}
-
-uint64_t cpu_global_time(void)
-{
-	return 0;
-}
-
-uint64_t cpu_global_time_freq(void)
-{
-	return 0;
-}