From patchwork Thu Dec 21 13:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122562 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp857380qgn; Thu, 21 Dec 2017 05:04:31 -0800 (PST) X-Google-Smtp-Source: ACJfBosVsVgPQc9OrlG/6TieD2fyLdnpczYsi2MkGMNDKKJQc6B1pKnt2rQVPLGexjKaWmM7ce1m X-Received: by 10.200.52.137 with SMTP id w9mr14923469qtb.290.1513861471475; Thu, 21 Dec 2017 05:04:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513861471; cv=none; d=google.com; s=arc-20160816; b=eoHWvuj7Wz48XV6DLAtd9Y7bg+Cs4YbpyHKmxhIxQ1EP+W9P/qw5d1JBWaTvWazje7 6cjSkwaf29mJ2AIrJ9XgifAshFCQwedu7Za0rQGZK+gwjWWu87AyJk0TflOHxJ/Wc72C iSIn5qnYfndchnguVbi0ZnlHmH7KPKzCxhiSJ2LMqZM5TRr1kSifC6rcoofGTWwMLps9 7P3g/khFPJLLRES0PwRiCqS3loDwfw52gF3JiEiAuzWNmy3ffz8qmWBIhL+Vz94X/g4q hEGg82jDgyGy0Sx5S+tVQOY7BngaGICUVHqkvkHMnQjFA5WPIPV9zUFgFFpGJoczr9Fh Yesg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=qobpFHpNhNu62M52ESvJ0hAEztHQTVjokRwejDDZMPQ=; b=f3OBIHSTS5GCYNmJkk1zAzDsSNvEVGGiZnnM082YE0w2o68SFxTww3SweBT5pgqjNS JjXMltcNU5CR2KYf4ng76x3A5978kAqiEJWYKXdE4ifBHOaJNct2hvvsa/3Y632hb+aA Zt7Aqi53WsZn/FPe3wWftU6G3bekxwWfBVWKWuVBlpyk00nGhvx8DemR0lTQG/m+oO39 nI9xMS7NDRaKM2+2NNjWlW9oE22QtECxBsBtTLLkGJoIpiQFx3HN01dOZpvEkgQdldej dP9NkHGp/dqVLFqbylkVoWbBu6Bxdc9AP6UzlVX9LoZu05gKmmmROWxjQtuupEL4qkTJ JJxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id m129si996347qkd.30.2017.12.21.05.04.30; Thu, 21 Dec 2017 05:04:31 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id DE86F616E2; Thu, 21 Dec 2017 13:04:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, TVD_SUBJ_WIPE_DEBT, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 94AC560C31; Thu, 21 Dec 2017 13:01:39 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 48AF260974; Thu, 21 Dec 2017 13:01:13 +0000 (UTC) Received: from forward103j.mail.yandex.net (forward103j.mail.yandex.net [5.45.198.246]) by lists.linaro.org (Postfix) with ESMTPS id CA4056095F for ; Thu, 21 Dec 2017 13:00:37 +0000 (UTC) Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:91]) by forward103j.mail.yandex.net (Yandex) with ESMTP id E4DF234C2517 for ; Thu, 21 Dec 2017 16:00:35 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 7TkDVs9k9j-0BXOj1ng; Thu, 21 Dec 2017 16:00:11 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id A7lll3EN3S-0BmqHJKk; Thu, 21 Dec 2017 16:00:11 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 21 Dec 2017 16:00:07 +0300 Message-Id: <1513861209-18790-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513861209-18790-1-git-send-email-odpbot@yandex.ru> References: <1513861209-18790-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 358 Subject: [lng-odp] [PATCH v1 1/3] linux-gen: arch: remove unused powerpc files X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Petri Savolainen These C files were not built. Signed-off-by: Petri Savolainen --- /** 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 --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 - -#include -#include - -#include -#include -#include -#include -#include - -#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; -}