From patchwork Fri Apr 13 05:27:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 133342 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp356845ljb; Thu, 12 Apr 2018 22:28:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+t4L35VYeuny7LW43plc4Bs2cjNgyYYouQ3rmsUUZG1xpCF4Djlo5OxTE7oUD/QTKSMp9X X-Received: by 2002:a17:902:7b96:: with SMTP id w22-v6mr3918333pll.116.1523597317406; Thu, 12 Apr 2018 22:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523597317; cv=none; d=google.com; s=arc-20160816; b=JWGc0R0cyDH2ZTOtb41u2NRncOjnXH5GQRWxTyKBmDz5S7g4xuqfZwLUqruA5RMdjX 7I38b3p/r0SvywskVgEJ9KnRK/hgWM8xUCDW0oNRAkUqtOUK2kUKnlAVEKfEu7zfpdNQ VbMNGjNSAJXLFvUnf+mf0tOy/VTJxMzXEdUoq45nLqSXcYi19dA8Q9bVSDtfCoHZkXdw U13an30zLy8ALlWE2xxjXNbkLkZsGTR6i44x+diXvsziVVgloUBfbz7eEtIoSyyfyxrY B+PQ1R68C/QNb+knaBkxp66Y5F0PnIC7eMhicwKMl/CyxrOSq+FqIrD7vTM8aHx2fJx8 iOJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=QUz/kxDGnc2q373gDHvfO8mTBnsrGw0ANAWx7Awj0HQ=; b=dL+R2hDICgKcbvt9Qas7rBeiHwMLTOVR9JnRoDu5wjm4yTmNFq8m6KEmaJtlCFwyHA l/tF4ocBJwpI9cZVY9j/t4BfjjM5Xb2gJNz662C7q/aul35PL6XFX8ty7/euqP/eIf6G C3btrSdzNzazOandGkiczMsAtLhcSXoYDK8nosDR2DIZRYSpsHTx9U2F9U0kVhu5CebH C9KO0qY0sH968eUE/kSyeSJX7+uli76R+/TYEjDsArfJjNb1+XHlBCI/fFO3encR5Tnr Nnf11yoz17UsqWE1NzymCRA2TPB0MbDTqbm940iJqXOz3obdvQ/kqbxwEfBEHaY6PsZV kAnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KYymH5DL; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si4840440pls.491.2018.04.12.22.28.37; Thu, 12 Apr 2018 22:28:37 -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=@linaro.org header.s=google header.b=KYymH5DL; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831AbeDMF2c (ORCPT + 29 others); Fri, 13 Apr 2018 01:28:32 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43677 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbeDMF2b (ORCPT ); Fri, 13 Apr 2018 01:28:31 -0400 Received: by mail-pg0-f66.google.com with SMTP id f132so288366pgc.10 for ; Thu, 12 Apr 2018 22:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QUz/kxDGnc2q373gDHvfO8mTBnsrGw0ANAWx7Awj0HQ=; b=KYymH5DLw8W6+2T49vwEmvt74Yn6bqsJ86GNh8qCs0Q04rIFvCrZAIzX1H2l/AwtRr E8Q7JsNjaMkohMMfPXff26cO/nPntGLJQs0ipjD+u1jItZ97lbyImUhPaY2sqaL07Evc c65h2TtQB8aFZXLnEtOHypMLWJPSmA+Ize2Pg= 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; bh=QUz/kxDGnc2q373gDHvfO8mTBnsrGw0ANAWx7Awj0HQ=; b=Bk4tmFEp8MwN1Wa0V1z91bpwNxM5MK/3qSVF/zFHz76+TY8oVkaxmsb1LDQHRcxV// c2Jkb7k+Be4gPLVHudjqJJZCcruCNidGJW9DtTk195RxMaDF3aLZMptbugpXesjsBX8c zGmd7fyfAlKObT5+WONVq2UEtJ3n43GXV342XxCbZTQwSeJvg8wYaybF5SGeLjrZ28R3 b+efzvQtOUL0C+a1iJHlfRbugTk7ikyfc1sgaKuIDF7HNS9bcUnQqW9HKfjdkE0LMhjn vRIA4XFPa1s2GhSsisgQiMZi8e4pH6ZNKMJGNSvJO4lxp/Y9yRE0ZU/qAb7bxifIWtfC iIzQ== X-Gm-Message-State: ALQs6tBd9EurSnDGGVdAyQEQx4bsez4Qqr/EcrVBLWlnBk6GsCoyOQL8 RRmL2OyKwCgiQlYVc1sak7OXFw== X-Received: by 10.99.9.66 with SMTP id 63mr857189pgj.103.1523597310547; Thu, 12 Apr 2018 22:28:30 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id p71sm12354092pfl.89.2018.04.12.22.28.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Apr 2018 22:28:29 -0700 (PDT) From: Baolin Wang To: john.stultz@linaro.org, tglx@linutronix.de, sboyd@kernel.org Cc: arnd@arndb.de, broonie@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] timekeeping: Remove __current_kernel_time() Date: Fri, 13 Apr 2018 13:27:58 +0800 Message-Id: <1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The __current_kernel_time() function based on 'struct timespec' is no longer recommended for new code, and the only user of this function has been replaced by commit 6909e29fdefb ("kdb: use __ktime_get_real_seconds instead of __current_kernel_time"). So now we can remove this obsolete interface. Signed-off-by: Baolin Wang --- include/linux/timekeeping32.h | 3 --- kernel/time/timekeeping.c | 7 ------- 2 files changed, 10 deletions(-) -- 1.7.9.5 diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h index af4114d..3616b4b 100644 --- a/include/linux/timekeeping32.h +++ b/include/linux/timekeeping32.h @@ -9,9 +9,6 @@ extern void do_gettimeofday(struct timeval *tv); unsigned long get_seconds(void); -/* does not take xtime_lock */ -struct timespec __current_kernel_time(void); - static inline struct timespec current_kernel_time(void) { struct timespec64 now = current_kernel_time64(); diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index ca90219..dcf7f20 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -2139,13 +2139,6 @@ unsigned long get_seconds(void) } EXPORT_SYMBOL(get_seconds); -struct timespec __current_kernel_time(void) -{ - struct timekeeper *tk = &tk_core.timekeeper; - - return timespec64_to_timespec(tk_xtime(tk)); -} - struct timespec64 current_kernel_time64(void) { struct timekeeper *tk = &tk_core.timekeeper;