Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp414504pxk; Thu, 1 Oct 2020 05:44:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh7ggEsARAqWwMMOOZvQiXiEFhBZyEAJ49Uk4wcEGAM8vcuG/D0m8hr9ng2xbUhGqTwzyj X-Received: by 2002:aa7:d593:: with SMTP id r19mr8211565edq.331.1601556253816; Thu, 01 Oct 2020 05:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601556253; cv=none; d=google.com; s=arc-20160816; b=OTM1cpekZ8sIJFGzkPKJp/YUp6d3YdiFd02K1+tKCDzT5Kw9hlkrTRfQfLgKswBQYz 2MSoYunEBy8oiLjO2NGUSdv9We5d1B7whmg6fCpFSMqo6o8lFOhsIFN6Hn1smdOPm3lf R/MNm0yHSX1Ld+33NPDhaVklqC5GiX18YQqdVZfA6qLYyRjFGGmBV3mTVp613Oo/ijBe osetUiLKENDTdFCsgYX/3LLcWYITRKZ75KGz3L/fw8kb1WgA+64NbqFQ5NpFRH/PFX6l Vtj/vC2wO/dGXE0wQFW/oZiNGcoITOb8FlVR0kmE4o4NbhrrsQ8YO/8afYimOqPeGJJP 42Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=Pg/MOMy69c1vhXVME2tZBvCug1cvu02E5O5EB8qYnfo=; b=ETiAsRyfrxMu+xaPK06pgmlqVeuPfJ1CnGClFgJ8FH5bo0gueevxdU6ePG0VF1ooG1 rGlSl+sRLx+xQSlPq/+MEJVXyF3+C1juExmDxvHC7sbuDbrSPuhjsSQuHZMNszv+oESB yCPpjD6ZZZPWl4n2+KeIW7b0JssYb4fTUhSNdgTKKKyxWZwIFNdcN7bPx/20HnSI1HE4 mvMAHUCu9H1T5lN8+rkh4sr2kOgXyFB6PUL7UTmWG9kxz0Zqj0IAIIYpz2Uxd6qQKpVg VrSbw3QkCBQKbRbPs4qLGETVsLeLRagRzCuu2/Ng6QjE3c+8ui/1ISMN6DyEVIFkhN3W JZ+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si3467648edb.6.2020.10.01.05.43.50; Thu, 01 Oct 2020 05:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732208AbgJAMmt (ORCPT + 99 others); Thu, 1 Oct 2020 08:42:49 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:15274 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732060AbgJAMmq (ORCPT ); Thu, 1 Oct 2020 08:42:46 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4C2CSx6m86z9tx8b; Thu, 1 Oct 2020 14:42:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id j37h9YqLAWpB; Thu, 1 Oct 2020 14:42:41 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4C2CSx5ptRz9tx8Z; Thu, 1 Oct 2020 14:42:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A38F18B96F; Thu, 1 Oct 2020 14:42:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 8b-Cg4FEw0RL; Thu, 1 Oct 2020 14:42:43 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 58BE88B903; Thu, 1 Oct 2020 14:42:43 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 3CCE265ED8; Thu, 1 Oct 2020 12:42:43 +0000 (UTC) Message-Id: In-Reply-To: <94dc68d3d9ef9eb549796d4b938b6ba0305a049b.1601556145.git.christophe.leroy@csgroup.eu> References: <94dc68d3d9ef9eb549796d4b938b6ba0305a049b.1601556145.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH 5/6] powerpc/time: Make get_tbl() common to PPC32 and PPC64 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 1 Oct 2020 12:42:43 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On PPC64, get_tbl() is defined as an alias of get_tb() which return the result of mftb(). That exactly the same as what the PPC32 version does. We don't need two versions. Remove the PPC64 definition of get_tbl() and use the PPC32 version for both. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/time.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/include/asm/time.h b/arch/powerpc/include/asm/time.h index c4ea81c966b0..01b054b9766f 100644 --- a/arch/powerpc/include/asm/time.h +++ b/arch/powerpc/include/asm/time.h @@ -41,18 +41,11 @@ struct div_result { /* Accessor functions for the timebase (RTC on 601) registers. */ #define __USE_RTC() (IS_ENABLED(CONFIG_PPC_BOOK3S_601)) -#ifdef CONFIG_PPC64 - /* For compatibility, get_tbl() is defined as get_tb() on ppc64 */ -#define get_tbl get_tb - -#else - static inline unsigned long get_tbl(void) { return mftb(); } -#endif /* !CONFIG_PPC64 */ static inline unsigned int get_rtcl(void) { -- 2.25.0