Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2211859imm; Thu, 19 Jul 2018 15:31:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcGUUpM2oKkYQWHhSE+FYP2iH64l8e0MgKM48Ky8NFrTXn/WL1ExkB1xOyXUXPl4m+2KekX X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr11936271pgu.219.1532039506109; Thu, 19 Jul 2018 15:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532039506; cv=none; d=google.com; s=arc-20160816; b=rP2uiuogkpj26CTlj6i1zZvWyAd0gtQTEMDzCnVcjA0LX14/9HSzpbglBghig7q4EH dye50/F5GtPP45LF+N4fsaVkeggy471JrYUsZwmY+xlbtUA+0Cts1u3P5KWR2Pigh8jE WlgaYNCbcJGWJr8AcQrrxD7mz9Wq+1YccU0vxkMauE6hBjvIDqvjnOgFDdWc4aGd4X6h Svo9v9+6QPXwZz9v9aTKq5J/whF74gw52s7gE3Req6jRpEH8rLDeDeebSXH1R0I6AEla bELSAlKfk8ioHiBRQlSfOLGiwmbR+20G3OonwgD3lIfOtKZCSxyVFa+2oIzILvsp4C4X UYUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=L7kPwXl3V2Lb2PwHGhP5ddB1CCEPJbpHv3LH5IIytk8=; b=q8h0KEH46iwO4eJ9ngn/3wtP0/9llEka4kZoSezOINjlrujFrqTmhHYwVAZG0dPsLs kdfKH6PXJtGGSh6BWix28jIGEp6H6/fOOeAekR/EnS8L9CAPhYbx1L7zytlBnP8F8bjz eBx59z7uQ52FpJYOXkF9coxkALBoG9sjEh4SFBGs8JTdo4Nhb+S+vhoe0lo0iv8KYb8E hAhu1T97r8/eEu4srEvOniDEQ2WzSsG19f+OoIu/nylkeJMc3V22wbKi/bQLoHqXHVtP 1kc0e61vaKxie+jbzXp6rlpOakieL2yXe5mXvvungPOw/SHxHXvo45im/MX0aHxw4QYx GwLw== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si272365plx.227.2018.07.19.15.31.31; Thu, 19 Jul 2018 15:31:46 -0700 (PDT) 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; 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 S1731319AbeGSXQD (ORCPT + 99 others); Thu, 19 Jul 2018 19:16:03 -0400 Received: from terminus.zytor.com ([198.137.202.136]:60121 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730885AbeGSXQD (ORCPT ); Thu, 19 Jul 2018 19:16:03 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6JMUl5C2439494 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 19 Jul 2018 15:30:47 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6JMUlG82439491; Thu, 19 Jul 2018 15:30:47 -0700 Date: Thu, 19 Jul 2018 15:30:47 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Pavel Tatashin Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, pasha.tatashin@oracle.com, hpa@zytor.com, tglx@linutronix.de Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, pasha.tatashin@oracle.com, mingo@kernel.org In-Reply-To: <20180719205545.16512-19-pasha.tatashin@oracle.com> References: <20180719205545.16512-19-pasha.tatashin@oracle.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/timers] ARM/time: Remove read_boot_clock64() Git-Commit-ID: 227e3958a780499b3ec41c36d4752ac4f4962874 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 227e3958a780499b3ec41c36d4752ac4f4962874 Gitweb: https://git.kernel.org/tip/227e3958a780499b3ec41c36d4752ac4f4962874 Author: Pavel Tatashin AuthorDate: Thu, 19 Jul 2018 16:55:37 -0400 Committer: Thomas Gleixner CommitDate: Fri, 20 Jul 2018 00:02:41 +0200 ARM/time: Remove read_boot_clock64() read_boot_clock64() is deleted, and replaced with read_persistent_wall_and_boot_offset(). The default implementation of read_persistent_wall_and_boot_offset() provides a better fallback than the current stubs for read_boot_clock64() that arm has with no users, so remove the old code. Signed-off-by: Pavel Tatashin Signed-off-by: Thomas Gleixner Cc: steven.sistare@oracle.com Cc: daniel.m.jordan@oracle.com Cc: linux@armlinux.org.uk Cc: schwidefsky@de.ibm.com Cc: heiko.carstens@de.ibm.com Cc: john.stultz@linaro.org Cc: sboyd@codeaurora.org Cc: hpa@zytor.com Cc: douly.fnst@cn.fujitsu.com Cc: peterz@infradead.org Cc: prarit@redhat.com Cc: feng.tang@intel.com Cc: pmladek@suse.com Cc: gnomes@lxorguk.ukuu.org.uk Cc: linux-s390@vger.kernel.org Cc: boris.ostrovsky@oracle.com Cc: jgross@suse.com Cc: pbonzini@redhat.com Link: https://lkml.kernel.org/r/20180719205545.16512-19-pasha.tatashin@oracle.com --- arch/arm/include/asm/mach/time.h | 3 +-- arch/arm/kernel/time.c | 15 ++------------- arch/arm/plat-omap/counter_32k.c | 2 +- drivers/clocksource/tegra20_timer.c | 2 +- 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/arm/include/asm/mach/time.h b/arch/arm/include/asm/mach/time.h index 0f79e4dec7f9..4ac3a019a46f 100644 --- a/arch/arm/include/asm/mach/time.h +++ b/arch/arm/include/asm/mach/time.h @@ -13,7 +13,6 @@ extern void timer_tick(void); typedef void (*clock_access_fn)(struct timespec64 *); -extern int register_persistent_clock(clock_access_fn read_boot, - clock_access_fn read_persistent); +extern int register_persistent_clock(clock_access_fn read_persistent); #endif diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index cf2701cb0de8..078b259ead4e 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c @@ -83,29 +83,18 @@ static void dummy_clock_access(struct timespec64 *ts) } static clock_access_fn __read_persistent_clock = dummy_clock_access; -static clock_access_fn __read_boot_clock = dummy_clock_access; void read_persistent_clock64(struct timespec64 *ts) { __read_persistent_clock(ts); } -void read_boot_clock64(struct timespec64 *ts) -{ - __read_boot_clock(ts); -} - -int __init register_persistent_clock(clock_access_fn read_boot, - clock_access_fn read_persistent) +int __init register_persistent_clock(clock_access_fn read_persistent) { /* Only allow the clockaccess functions to be registered once */ - if (__read_persistent_clock == dummy_clock_access && - __read_boot_clock == dummy_clock_access) { - if (read_boot) - __read_boot_clock = read_boot; + if (__read_persistent_clock == dummy_clock_access) { if (read_persistent) __read_persistent_clock = read_persistent; - return 0; } diff --git a/arch/arm/plat-omap/counter_32k.c b/arch/arm/plat-omap/counter_32k.c index 2438b96004c1..fcc5bfec8bd1 100644 --- a/arch/arm/plat-omap/counter_32k.c +++ b/arch/arm/plat-omap/counter_32k.c @@ -110,7 +110,7 @@ int __init omap_init_clocksource_32k(void __iomem *vbase) } sched_clock_register(omap_32k_read_sched_clock, 32, 32768); - register_persistent_clock(NULL, omap_read_persistent_clock64); + register_persistent_clock(omap_read_persistent_clock64); pr_info("OMAP clocksource: 32k_counter at 32768 Hz\n"); return 0; diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c index c337a8100a7b..2242a36fc5b0 100644 --- a/drivers/clocksource/tegra20_timer.c +++ b/drivers/clocksource/tegra20_timer.c @@ -259,6 +259,6 @@ static int __init tegra20_init_rtc(struct device_node *np) else clk_prepare_enable(clk); - return register_persistent_clock(NULL, tegra_read_persistent_clock64); + return register_persistent_clock(tegra_read_persistent_clock64); } TIMER_OF_DECLARE(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc);