Received: by 10.192.165.156 with SMTP id m28csp182017imm; Tue, 17 Apr 2018 08:25:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sTSb0GODEjuZBTCJ8xQjasPFjSEgjGUVDFQL71BrNIPuYSijSqtQuE03jCLJelTa2z+Gw X-Received: by 2002:a17:902:96a:: with SMTP id 97-v6mr2515589plm.266.1523978750884; Tue, 17 Apr 2018 08:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523978750; cv=none; d=google.com; s=arc-20160816; b=PbwsYq3lev11YvWGtWHiseH6e8eSEZRbSQZ7+MrY2rEsJvRFaBnWN1oYHuhsutMQOS H18H29+WEct4IUsIZSZtVWWeKL1xDkMd0jh2k7ZMWwaVbziCMVzbB8GQjrXuK7xasAlt 5zxBesOtEeU8kAdUcV8ALfk0AZhNVE5txmZbgEz2RRgZBjCqBK0l3IX1/y+dJv2wqSnk AgKQvxLsNNFzXBy11eG588EYOvch7D990/em1I515CP721engwFhpK/H3l8E4v0MmhZt NwyLygTkozcHDcUukDYypKzJPs3qgQDqv8FA/aAbHjAtv6QxlZARqJdJnWstvFlZzDR+ 1sRA== 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=v1B1dkjQXLhd6AAd070RpxFdoBfbS3VEBb+wrjZ4CaQ=; b=jOyGZtItSk+S+mwXmwUSQUbWJdFmpVq1aqtUEjijp70Yq268PN1w27qpDOMsnWFVpc Fn9aLYzY95w4XhozmLRw6T2BzvT9IBMtG0frdLh0IBkn10i63YnMld7nfClU7LdijWHE mt5/HOt4s0c22ufAeLRdPqBWLuxsClbbYpXPU3eRRip96lq8V+kRkO7jXG3i0A0g0N00 R2oB1rhhrK+mtwUuMbxekqKauPqb9XfyJIxg37f9RioXQUJgYpqh7iivwWaTeBB0zfpL BAniKGHPDMzhBECOjM51HjWSP8GSEd+2ugzzpxYrOk+kamv/1C9RMaITtB3w+9C+2prm dKhA== 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 v61-v6si14709852plb.297.2018.04.17.08.25.36; Tue, 17 Apr 2018 08:25:50 -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 S1753130AbeDQPXa (ORCPT + 99 others); Tue, 17 Apr 2018 11:23:30 -0400 Received: from terminus.zytor.com ([198.137.202.136]:59863 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbeDQPX3 (ORCPT ); Tue, 17 Apr 2018 11:23:29 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w3HFNMJF950563; Tue, 17 Apr 2018 08:23:22 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w3HFNMtH950560; Tue, 17 Apr 2018 08:23:22 -0700 Date: Tue, 17 Apr 2018 08:23:22 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Baolin Wang Message-ID: Cc: tglx@linutronix.de, baolin.wang@linaro.org, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com Reply-To: tglx@linutronix.de, mingo@kernel.org, baolin.wang@linaro.org, hpa@zytor.com, linux-kernel@vger.kernel.org In-Reply-To: <1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org> References: <1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/urgent] timekeeping: Remove __current_kernel_time() Git-Commit-ID: e142aa09ed88be98395dde7acb96fb2263566b68 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 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: e142aa09ed88be98395dde7acb96fb2263566b68 Gitweb: https://git.kernel.org/tip/e142aa09ed88be98395dde7acb96fb2263566b68 Author: Baolin Wang AuthorDate: Fri, 13 Apr 2018 13:27:58 +0800 Committer: Thomas Gleixner CommitDate: Tue, 17 Apr 2018 17:18:05 +0200 timekeeping: Remove __current_kernel_time() 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"). Remove the obsolete interface. Signed-off-by: Baolin Wang Signed-off-by: Thomas Gleixner Cc: arnd@arndb.de Cc: sboyd@kernel.org Cc: broonie@kernel.org Cc: john.stultz@linaro.org Link: https://lkml.kernel.org/r/1a9dbea7ee2cda7efe9ed330874075cf17fdbff6.1523596316.git.baolin.wang@linaro.org --- include/linux/timekeeping32.h | 3 --- kernel/time/timekeeping.c | 7 ------- 2 files changed, 10 deletions(-) diff --git a/include/linux/timekeeping32.h b/include/linux/timekeeping32.h index af4114d5dc17..3616b4becb59 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 ca90219a1e73..dcf7f20fcd12 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;