Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp89310imm; Thu, 21 Jun 2018 14:28:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKU5oUBZyz//pMOCN+vhD+ycIBipuaV5c3zMFTtbOttPokur7cHItea6ZDtxRoheHwnaCNj X-Received: by 2002:a65:5348:: with SMTP id w8-v6mr24386877pgr.247.1529616537333; Thu, 21 Jun 2018 14:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529616537; cv=none; d=google.com; s=arc-20160816; b=swLHhb12VNcDocbxCUxT+a/42YQr9WaZtO2tmjNQohmK4IwBM3HTjTHKSGC3sURNfs kt2f1JlEqQVNGrdjj9mrsNTPiV0X8PLr+nS/FARnMVZMmxJv/7LOYht7y+2czvHB6RG8 KWU9Z9BrGGNM0wa5D3+RsKyjdafL4pBDo59swn8zH2XE9F6ajcEHFWkB+3px+8GalrYE yBgFc1nwrIO+fMi1K8upmqTiB3pVuhh3/9qOz9JX3Eg9uWo1Ambo3HKxyjLIaWA8VTNa D4A6whsTGtwxDEcchtnQxnLGJaiJ5yIoLlvFV534Rjq1jn20ZvZtXQ2MxAm+3LCSoKBH Nu3A== 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:to:from:dkim-signature:arc-authentication-results; bh=ReGjLhaAMuvhh0hoEf/lu+nZxGNGBTlWtg+LG22EG3s=; b=pbHmvmgci6n2gmJo7IA2v1skloGCSeYdxIbElTHhVP17xuIZlXXtFrZQAhFR7ELpUq zrVm5V9YcHI9X4hrLab+p3u6Rc5Yty3CV/BD0QtZvWP7YxmBUoy0M+8HtU6lCKqrRgM5 UnYatlQu3ThLtyG1du1rxOwWX+60JJjYr6UXhQGlMTA3QvDNXX9XuCMBrWGxCnftfPgM DQTXiI25j1Tg/IzwBK70+FJcUUYS6MyIJV+m2aLzvap8Y0XghDmNgM8hdVTpjLYETe73 d4U4ZhbptYAJUeqICisD3YIXHM3Da9Kk9K6+5KUDlzYMRoKzYvFZr1WJzDvaPe+6z3cf u9ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=bBT2ldvO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43-v6si5749514pla.362.2018.06.21.14.28.42; Thu, 21 Jun 2018 14:28:57 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=bBT2ldvO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933837AbeFUV1Y (ORCPT + 99 others); Thu, 21 Jun 2018 17:27:24 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:37390 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933686AbeFUV0d (ORCPT ); Thu, 21 Jun 2018 17:26:33 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5LLNrIX138879; Thu, 21 Jun 2018 21:25:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=ReGjLhaAMuvhh0hoEf/lu+nZxGNGBTlWtg+LG22EG3s=; b=bBT2ldvOVk03dFtHqpvKuhqgKXyhu6B9KmGvj1vmU6WoFIhqSuZAezice5+yEBLqhHfN KW8F0TvjFHNVEnksEk5fUG1L1C9SYq86xmekVHbRrwk8ayZmyOViUsZihGS3r9iIgNub SeuINYEJ82xIIIV252j4JfCEFPYFYCOHEwAXvpbppJu7XEA6Wcf19Kvq+HHLtY4ez1C4 p5+1T8oT8VtoF2CqvmMF/5CcbEz56XRJgGgR4jQaAAz5ojSCeJs024w32spR8qJxhJ9Z XT8zFq09Q0jdBHCXgCdCUEzb8+xF2z4Sa4ezT6F73BPXxzKTOxRmMbjeClgj3ioXDLLn GQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2jmtgx3qdf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Jun 2018 21:25:39 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5LLPd9i016638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Jun 2018 21:25:39 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w5LLPcEb014079; Thu, 21 Jun 2018 21:25:38 GMT Received: from xakep.us.oracle.com (/10.39.228.116) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 21 Jun 2018 14:25:37 -0700 From: Pavel Tatashin To: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux@armlinux.org.uk, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, john.stultz@linaro.org, sboyd@codeaurora.org, x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, douly.fnst@cn.fujitsu.com, peterz@infradead.org, prarit@redhat.com, feng.tang@intel.com, pmladek@suse.com, gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org Subject: [PATCH v12 08/11] ARM/time: remove read_boot_clock64() Date: Thu, 21 Jun 2018 17:25:15 -0400 Message-Id: <20180621212518.19914-9-pasha.tatashin@oracle.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180621212518.19914-1-pasha.tatashin@oracle.com> References: <20180621212518.19914-1-pasha.tatashin@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8931 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=827 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806210230 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, so remove the old code. Signed-off-by: Pavel Tatashin --- arch/arm/kernel/time.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index cf2701cb0de8..0a6a457b13c7 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c @@ -83,29 +83,19 @@ 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) { /* 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; } -- 2.17.1