Received: by 10.223.164.202 with SMTP id h10csp102343wrb; Wed, 29 Nov 2017 17:57:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMY8yA6PUM/jdgyjWvvXs4tuOpRXqF5uBYx8u1OPQ+1MsafBItWCN+buWLTwQWoz+dWEWsJB X-Received: by 10.99.67.195 with SMTP id q186mr853757pga.163.1512007072159; Wed, 29 Nov 2017 17:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512007072; cv=none; d=google.com; s=arc-20160816; b=iFPx7hlRPsn6JAR4NjEqeHpGqN/hCclsZ0uKAoT0Nt21U3pVZJ0+2r4v4ao8JCjMgZ rNjWIitaQaT/cWqRaNV/kBm10PSJwRjH8rq37kItMQd/H+F1OalEb27dEIcT5XPHifCd SVzkVK0UG3L4hMKkqj1S7hCrcvqrSSWSoaK+cqgsQpi9tC3GYX5Ksv3t7DEh4M7Vz3hh yZW/zSc302ncZoH/DiIP+rS2inWYX4BOI+kFjC8p9mHwXEeXCEHj6dg/VSmVz2JiMIOQ rHkdSj5+KXoY2WFdJ6s30QpwzsmpYA5cryf5wAm8hzwSD2pcx8oBBUNxbOhXM1Q5EbVD pirQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mJ+6pY66T1F8ZHvlNXnmW8OCqdvsHw3FQ2oJ7FNP4qA=; b=YARauACgemfyZscNlrqn/LsA3nd0t4vBf5zbroJem8Y3dtrzZ66zDiR3UgwodEgMua QUbZnjjWdd7a6dSo9CXPM+bzBGGBIMrk/mHRFq7BPsldH/vo5jUul5NMypJHnuYq/f85 7c0SjIidSz6tucThIhk85VVmRoo3/YvZFDIO75mMG4KZC+GcNeJ7pvXoSDQOuR0gffTq jpq7gmcQrFGm3YnRt8iq28C09x90TdEp2uuDIsU01XyihBFBdnk5IgX2lKojPNqDH6Bl oKvU6jm6TifeOSgnQQ/O7aUSmlp3zxkjZA4sOoFQ/1+kETpKFhEWWDb34HiXAYVw6fQ3 bAJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=zOqG37Oy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n79si2335627pfa.197.2017.11.29.17.57.38; Wed, 29 Nov 2017 17:57:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=zOqG37Oy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753819AbdK3B4z (ORCPT + 99 others); Wed, 29 Nov 2017 20:56:55 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42779 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbdK3Bzy (ORCPT ); Wed, 29 Nov 2017 20:55:54 -0500 Received: by mail-pf0-f195.google.com with SMTP id d23so2422930pfe.9 for ; Wed, 29 Nov 2017 17:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mJ+6pY66T1F8ZHvlNXnmW8OCqdvsHw3FQ2oJ7FNP4qA=; b=zOqG37OyCJwvdshAz4x3zu7Twoejj0gAERy48cSghatHfBrGKAZb4yTpLqc0Z3z+cg 1K9VnCey5j/6+n7dAOnl4o4PMp+EJOqHIVIrWyjGDE6kPyf0qd/2e6Xmkbzd9WMYamRQ SpqEvN7tiDZc8J+7OZw3+8d4aGuTvxbnFoZC1VtK+1v7LDc3JfYrTxatxCNNHUsrNoYE PHDKTdiCkVTQ7wKIQ3Df1jLppptkIzdg7a5kGXKRKDPrZkzkPRJmf1bq1PgNsui9GXc3 bv50c6eMhFHuqaS0/b1R1UDCGDoq9uU3Te+BcVIIldJi4jxXhGXpUP/QZWU7lYQOpzpR BHMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mJ+6pY66T1F8ZHvlNXnmW8OCqdvsHw3FQ2oJ7FNP4qA=; b=lbO1ggIDPzg/0kxSDKmK99SfwzXXBX/AD2caaFcSmx/Jws4UKt8ql7E3RTjgVFbrT/ M9aIByqgyJxKps7OwA8f9EQWuuAlIVI90LRnJKje/xST6OmKo3pj3Dkt+cAn8inaRmnc iY+a7oHCXnOjRA7zMh5ZdAH6hUmfwo8CjGcHa8ddV4A0MmJfo2G6YPWeD/D9NRTG/sB+ cRpace85zGcO9HoftYlCqWH2OgIzvw4B2Bbyp3WueDBRC6sVWwxQERnDs/gdT+A+/DJj x5pmTVnsrKN5Pdk6fcCDtqpiD+IiAvpvQSRQHqqxOVjLlTm/jPTx7IQtBBJ3tVxRmkkC JDBg== X-Gm-Message-State: AJaThX4tBQCJDD+RhzIxrLZfMZSTNJoyx+Yi4EEIDsVdVSjq21xnjN+3 jPbkp3DjakiOmLrRshbV/8JTtQ== X-Received: by 10.98.93.219 with SMTP id n88mr4977555pfj.215.1512006953625; Wed, 29 Nov 2017 17:55:53 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by smtp.gmail.com with ESMTPSA id l80sm5178177pfb.124.2017.11.29.17.55.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 17:55:52 -0800 (PST) From: Olof Johansson To: Palmer Dabbelt Cc: Albert Ou , patches@groups.riscv.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 07/10] RISC-V: Use define for get_cycles like other architectures Date: Wed, 29 Nov 2017 17:55:18 -0800 Message-Id: <20171130015521.1289-8-olof@lixom.net> X-Mailer: git-send-email 2.8.6 In-Reply-To: <20171130015521.1289-1-olof@lixom.net> References: <20171130015521.1289-1-olof@lixom.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Olof Johansson --- arch/riscv/include/asm/timex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/timex.h b/arch/riscv/include/asm/timex.h index 3df4932..2f26989 100644 --- a/arch/riscv/include/asm/timex.h +++ b/arch/riscv/include/asm/timex.h @@ -18,7 +18,7 @@ typedef unsigned long cycles_t; -static inline cycles_t get_cycles(void) +static inline cycles_t get_cycles_inline(void) { cycles_t n; @@ -27,6 +27,7 @@ static inline cycles_t get_cycles(void) : "=r" (n)); return n; } +#define get_cycles get_cycles_inline #ifdef CONFIG_64BIT static inline uint64_t get_cycles64(void) -- 2.8.6 From 1585381338467170108@xxx Wed Nov 29 06:37:44 +0000 2017 X-GM-THRID: 1585381338467170108 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread