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: 405022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ig0-x23e.google.com (mail-ig0-x23e.google.com [IPv6:2607:f8b0:4001:c05::23e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id BCED914007B for ; Thu, 30 Oct 2014 22:17:28 +1100 (AEDT) Received: by mail-ig0-f190.google.com with SMTP id hl2sf578475igb.17 for ; Thu, 30 Oct 2014 04:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=lRcGIPCHbiqxJbiSBruWAK1H19JeZAYE71RsdQfsURI=; b=LsQ8fIRfP/pG1ASBuSdqcP4zqtvgItR5Ae5HK8Y9vOXup5rWDKV4AfXsWb13+8wLox T5Y0lmtGcYDD/v1ArECSXrWx8bsfoSgQWMptx6Gsot+RZDcMEaDnPz/wM7RqEpVMUKqq ndsadgsy3NXoSMWLSZejVHL9vY7okiOvdLj/bsRZlx2KWmy9TYXCTWLYsYobptPQK/WU OdETG5SmlPbWROzNdD+kbTVg4R26CKnkou5U8DLcA66Fh2tOgX4B3KS0jPFsoCKceKcf V4M2tKELzs878wBh1GnHtKlo5AJ48fCyeuleX1zkMFtarVutZiQ5k2JjST5pHgKouk3K GBwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=lRcGIPCHbiqxJbiSBruWAK1H19JeZAYE71RsdQfsURI=; b=Yiv1xwTwZ9fLDr+CsLc30iiawG16EetnG9pXmcPknI/MhWbxbeOKGZ9QZ5aY/azbgt /e03ISOqrvOkBEjgFKgNaa9e5wXilZuZEyhbNYGpkoqOd+0dkNTZr1dWQJzjaHMOpuza Pj01omSuyYGrVyHbmze5b45kX/lGSbRyNiE5LPbroiB/BbUubaciflDeZwzTB/mJ+me3 DdCJWVru4It9ARHxaGPLb46c50WlJcNBOJobPo0W67TW+vsFTqIQ5S3B/pXQkVHK8hmo 7iqE4YOr1EcFoJ63Ki6ARrbZNtY1cc8l4nRk6Pd+prsqnHuwSHyEkxXNdLHDfeJZCGqL 5hyQ== X-Received: by 10.50.85.39 with SMTP id e7mr551931igz.9.1414667846983; Thu, 30 Oct 2014 04:17:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.66.171 with SMTP id g11ls647249igt.18.gmail; Thu, 30 Oct 2014 04:17:22 -0700 (PDT) X-Received: by 10.42.52.1 with SMTP id h1mr12578670icg.23.1414667842897; Thu, 30 Oct 2014 04:17:22 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com. [209.85.192.169]) by gmr-mx.google.com with ESMTPS id z13si894460pdl.0.2014.10.30.04.17.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:17:22 -0700 (PDT) Received-SPF: pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.192.169 as permitted sender) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id y10so5010285pdj.0 for ; Thu, 30 Oct 2014 04:17:22 -0700 (PDT) X-Gm-Message-State: ALoCoQm+5wPjDd6F3psC8UGMtG3r5OOL82dvRTEahnCm57d9D0qToAKctX3tLUn/xxJ1h0yp3UAy 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: [rtc-linux] [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> X-Original-Sender: pang.xunlei@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of pang.xunlei@linaro.org designates 209.85.192.169 as permitted sender) smtp.mail=pang.xunlei@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 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 *