From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C72EBA00BE; Tue, 7 Jul 2020 04:05:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF3B91DC61; Tue, 7 Jul 2020 04:05:47 +0200 (CEST) Received: from mail-il1-f194.google.com (mail-il1-f194.google.com [209.85.166.194]) by dpdk.org (Postfix) with ESMTP id C9DD31D70A for ; Tue, 7 Jul 2020 04:05:45 +0200 (CEST) Received: by mail-il1-f194.google.com with SMTP id s21so19508105ilk.5 for ; Mon, 06 Jul 2020 19:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ERMDxyqKefkfJvStySdMxcK3d2Xd0aXv/PYNLvoMmRI=; b=af0lNbRiBVV3SVpbWCOgdI6OUq4utrhjdPC/VmIMVIYc6Q2ruJu/U4QC6ebVEmgwoU O5gLl1HgL5X9yj8erlJq6V2FhBNGoI97Y+uR67e4aW5KyXvV3bqyl1YCVoqNltlbu/mj fvfvKwai0RTJs6J7rORhGbUe5O3OxrEt/2dh2Upb6wbvR5f2/CCfU4CZvEyMYU2eemVl JyF4sZizfkZvbldEcueo8pvWO4NSbIgE/LkqVLBzGZwePhT3sJRkd9W+NCZhoraP/q89 LU4ZUSl4dlVHtLOVMwpzPkrpIKfgZI3Kg3On/9+vxZLSe1BYYDgh2OmG/FKWfEx/pVhq HIPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ERMDxyqKefkfJvStySdMxcK3d2Xd0aXv/PYNLvoMmRI=; b=DmBC3Gk/Q3fVVM7OGfrDcgVfysFIj20GInpOtuzqiC+0TKSLAgjmw26bVTFZADoqdn beRuu4Acb19efJ0YjlCbAVpjAtBrfSZnvtjzT1zFGmFVhkGkky1OwjAq2y7/y3Ljz098 u1Wc2MM0L1pCdH4iKhy8IAC8aRZUonaem4Ecn3cSgbBJfaJnbU9hvV3zvlWhQStGdGNN 6Zg08mgMdBQIkLQvctUHqAwdRgG7L0+kqmrHZvhiTa0bghxAK9Rw1o0DD5Fvf0hyQsuo oieCG3/X4joXtTCstXNGub6S/INDbhMw+ZpOiQHTLwrngg8tnF1gJpZf1qnWECVgHHrX hd5Q== X-Gm-Message-State: AOAM531vLmKAdLADzNhvSWwYHXECwjeT04Vm84mZlllRIdUrggVCJ8yw aLhs3BmGD0fssayTFhLR0JwCWGz0rOp2tXCT74g= X-Google-Smtp-Source: ABdhPJwKD2gJJXBd/gluQuLV/sYc2MgvDxx8zCba8MAiNpWZuZTf8hYpJeWKb+0aknHd8DbKy9yD5f/GX6/TeCIrWH8= X-Received: by 2002:a92:9804:: with SMTP id l4mr33597069ili.271.1594087545085; Mon, 06 Jul 2020 19:05:45 -0700 (PDT) MIME-Version: 1.0 References: <20200608213417.9764-1-honnappa.nagarahalli@arm.com> <20200626203502.20658-1-honnappa.nagarahalli@arm.com> <20200626203502.20658-2-honnappa.nagarahalli@arm.com> In-Reply-To: <20200626203502.20658-2-honnappa.nagarahalli@arm.com> From: Jerin Jacob Date: Tue, 7 Jul 2020 07:35:29 +0530 Message-ID: To: Honnappa Nagarahalli Cc: dpdk-dev , Jerin Jacob , Hemant Agrawal , Akhil Goyal , ogerlitz@mellanox.com, Ajit Khaparde , Pavan Nikhilesh , nd Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 2/2] eal/arm: change inline functions to always inline X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, Jun 27, 2020 at 2:05 AM Honnappa Nagarahalli wrote: > > Change the inline functions to use __rte_always_inline to be > consistent with rest of the inline functions. > > Signed-off-by: Honnappa Nagarahalli Acked-by: Jerin Jacob > --- > lib/librte_eal/arm/include/rte_cycles_64.h | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/lib/librte_eal/arm/include/rte_cycles_64.h b/lib/librte_eal/arm/include/rte_cycles_64.h > index e41f9dbd6..029fdc435 100644 > --- a/lib/librte_eal/arm/include/rte_cycles_64.h > +++ b/lib/librte_eal/arm/include/rte_cycles_64.h > @@ -50,7 +50,7 @@ __rte_arm64_cntvct_precise(void) > * This call is portable to any ARMv8 architecture, however, typically > * cntvct_el0 runs at <= 100MHz and it may be imprecise for some tasks. > */ > -static inline uint64_t > +static __rte_always_inline uint64_t > rte_rdtsc(void) > { > return __rte_arm64_cntvct(); > @@ -85,22 +85,25 @@ __rte_arm64_pmccntr(void) > return tsc; > } > > -static inline uint64_t > +static __rte_always_inline uint64_t > rte_rdtsc(void) > { > return __rte_arm64_pmccntr(); > } > #endif > > -static inline uint64_t > +static __rte_always_inline uint64_t > rte_rdtsc_precise(void) > { > asm volatile("isb" : : : "memory"); > return rte_rdtsc(); > } > > -static inline uint64_t > -rte_get_tsc_cycles(void) { return rte_rdtsc(); } > +static __rte_always_inline uint64_t > +rte_get_tsc_cycles(void) > +{ > + return rte_rdtsc(); > +} > > #ifdef __cplusplus > } > -- > 2.17.1 >