From patchwork Thu Oct 30 11:15:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pang.xunlei" X-Patchwork-Id: 39821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 47210202FE for ; Thu, 30 Oct 2014 11:17:38 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf3030731wiv.9 for ; Thu, 30 Oct 2014 04:17:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Q/UJ9X7rvwRR0WjsFvumIRT7vbCym8hzVdtTLROEwyM=; b=VgXifzC9iPv/Jd3k/jYZE+lqhUFro/E8g7bOILODy8OHHj9Q9C7LefQrAYjXFDG0JH tleErBLXjwC2Wj4UeSAQLP8/HOcu8KdjjHPqy6iGyydoWmxMbbd1u66919zrUq6ryA0E ixwN5bQYTv7OO8/w2eGxHfYo0KIYd6hVqWOB4NKc14+0y+OwZRxFdrmZeqgmk3C4cXVk OhgCbdECqA6MeRJ61KWjBJ+UbmaxaKMRQn2Ts/QVaSsCSVNvpABy4TVAmPUaeVwPUktF /S05TIvzG8UtXYfaPVeSI1LJYxluWK2/JZZyRTUaH+Fio2YYg5nFO3CV8swHUr4FMv3T hE1Q== X-Gm-Message-State: ALoCoQlgjoajtrwRg/CKuVg0zVS8iRVGLFxoVsrSGfMiMhoeQ9/k1hHYG/UOLRKzbiKNXAsKaIC3 X-Received: by 10.152.3.168 with SMTP id d8mr2785561lad.0.1414667857355; Thu, 30 Oct 2014 04:17:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.229 with SMTP id h5ls348233lam.4.gmail; Thu, 30 Oct 2014 04:17:36 -0700 (PDT) X-Received: by 10.112.142.33 with SMTP id rt1mr18003280lbb.85.1414667856794; Thu, 30 Oct 2014 04:17:36 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id qy3si11586970lbb.3.2014.10.30.04.17.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:17:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by mail-la0-f42.google.com with SMTP id gq15so4250740lab.1 for ; Thu, 30 Oct 2014 04:17:36 -0700 (PDT) X-Received: by 10.112.77.74 with SMTP id q10mr17937201lbw.66.1414667856677; Thu, 30 Oct 2014 04:17:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp22381lbz; Thu, 30 Oct 2014 04:17:35 -0700 (PDT) X-Received: by 10.70.128.203 with SMTP id nq11mr16823896pdb.88.1414667853673; Thu, 30 Oct 2014 04:17:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wg5si6275496pab.219.2014.10.30.04.17.32 for ; Thu, 30 Oct 2014 04:17:33 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759401AbaJ3LR2 (ORCPT + 26 others); Thu, 30 Oct 2014 07:17:28 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:63353 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759381AbaJ3LRX (ORCPT ); Thu, 30 Oct 2014 07:17:23 -0400 Received: by mail-pd0-f181.google.com with SMTP id y10so4900971pdj.26 for ; Thu, 30 Oct 2014 04:17:22 -0700 (PDT) X-Received: by 10.70.51.42 with SMTP id h10mr16529354pdo.21.1414667842769; Thu, 30 Oct 2014 04:17:22 -0700 (PDT) Received: from wangdeqiang.com ([210.21.227.66]) by mx.google.com with ESMTPSA id i10sm6874826pdr.21.2014.10.30.04.17.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:17:22 -0700 (PDT) From: "pang.xunlei" To: linux-kernel@vger.kernel.org Cc: rtc-linux@googlegroups.com, xen-devel@lists.xenproject.org, John Stultz , Thomas Gleixner , Alessandro Zummo , Stefano Stabellini , "pang.xunlei" Subject: [RFC PATCH v2 06/11] time: Remove do_settimeofday() Date: Thu, 30 Oct 2014 19:15:40 +0800 Message-Id: <1414667745-7703-7-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414667745-7703-1-git-send-email-pang.xunlei@linaro.org> References: <1414667745-7703-1-git-send-email-pang.xunlei@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pang.xunlei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove do_settimeofday(), since it has no users by now. Signed-off-by: pang.xunlei --- include/linux/timekeeping.h | 1 - kernel/time/timekeeping.c | 16 ---------------- 2 files changed, 17 deletions(-) diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index afc61c3..24abc46 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -11,7 +11,6 @@ extern int timekeeping_suspended; */ extern void do_gettimeofday(struct timeval *tv); extern int do_settimeofday64(const struct timespec64 *ts); -extern int do_settimeofday(const struct timespec *tv); extern int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz); diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index f0dcbc0..e776d6b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -744,22 +744,6 @@ int do_settimeofday64(const struct timespec64 *ts) EXPORT_SYMBOL(do_settimeofday64); /** - * do_settimeofday - Sets the time of day - * @tv: pointer to the timespec variable containing the new time - * - * Sets the time of day to the new time and update NTP and notify hrtimers - * TODO: [2038 safety] should be replaced by do_settimeofday64(). - */ -int do_settimeofday(const struct timespec *tv) -{ - struct timespec64 ts64; - - ts64 = timespec_to_timespec64(*tv); - return do_settimeofday64(&ts64); -} -EXPORT_SYMBOL(do_settimeofday); - -/** * timekeeping_inject_offset - Adds or subtracts from the current time. * @tv: pointer to the timespec variable containing the offset *