From patchwork Thu Apr 19 06:06:35 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: 10349145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82C5260365 for ; Thu, 19 Apr 2018 06:07:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B4B0288FE for ; Thu, 19 Apr 2018 06:07:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E5B228917; Thu, 19 Apr 2018 06:07:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6B7E288FE for ; Thu, 19 Apr 2018 06:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751130AbeDSGH1 (ORCPT ); Thu, 19 Apr 2018 02:07:27 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38641 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeDSGH0 (ORCPT ); Thu, 19 Apr 2018 02:07:26 -0400 Received: by mail-pf0-f196.google.com with SMTP id y69so2103276pfb.5 for ; Wed, 18 Apr 2018 23:07:26 -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=UPu7EcNm1qh0/CX1glO3M6uwXBSQMDhx1TD1sT1AAaY=; b=Om7MuKBTW7gsLktc4137xToLnPDM/wrXaMf1M+LQW+rkNX+FIhViUC6M08eJmWe0jH MOnfq3VN/m+UCTJ1DfNSoACV6fCUYi0QYBHRqQ0v0VTDOjV4Jn3YSEtVqTQHojJyGZBE NBZvS71ugsr5aTImEnEPZ2XQIGaB7Rtiknv6g= 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=UPu7EcNm1qh0/CX1glO3M6uwXBSQMDhx1TD1sT1AAaY=; b=NrimeSjl+q4+qc323ScygD9N/KD8J5EVRmy1pt2kWBLvRzcgME3VXxFhH/hQiE9SbB MCuLShpjxuodajGLfo1MJmO4o8LyARis3ZA9NNbPzMF+LSwL/7B7e+AxV/ng0F9Gj4QH XTDDUPZNkqtWTeDp1Bc0pOYX3/R0BnYY38IBGsYna8QwJX5z/6ZJBLhbYkcU6q17W+Pp 3WiVJO8UAo+Y6WkqAdVYMtm75UOBfgUm4l+1DNrohr/JqQffgNBN6IJOI+I+OV6UB1Hk whxk3yexDz0nFVeSOcSogBuryMn19cRsFrHmjfiFSuZUtx2szKPBzZjsFEIkUs+AhpkN Jb0g== X-Gm-Message-State: ALQs6tD/78eoFEbIW1iMKZHAiBrKPhpUzMm54j0hZPyaUzaQTKMsJR3s WHqzNnZCTd2ETMPDL5vpaT7t3pifG0g= X-Google-Smtp-Source: AIpwx4/PXyJDX4OfexmWLb7Jdibvv6m+uOyTqDvZXP9Ivyo9Uke5wqVZS+w+pOUB+dQSOHhdiFGVVw== X-Received: by 10.99.64.65 with SMTP id n62mr4041352pga.259.1524118046295; Wed, 18 Apr 2018 23:07:26 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id a12sm6027616pfe.78.2018.04.18.23.07.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 23:07:25 -0700 (PDT) From: Baolin Wang To: ysato@users.sourceforge.jp, dalias@libc.org Cc: arnd@arndb.de, broonie@kernel.org, linux-sh@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH] sh: time: Remove the read_persistent_clock() Date: Thu, 19 Apr 2018 14:06:35 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The read_persistent_clock() uses a timespec, which is not year 2038 safe on 32bit systems. Moreover on sh platform, we have RTC drivers that can be used to compensate the system suspend time. Thus we can remove the read_persistent_clock() safely. Signed-off-by: Baolin Wang --- arch/sh/kernel/time.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index fcd5e41..326004c 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c @@ -37,11 +37,6 @@ static int null_rtc_set_time(const time_t secs) void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time; int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time; -void read_persistent_clock(struct timespec *ts) -{ - rtc_sh_get_time(ts); -} - #ifdef CONFIG_GENERIC_CMOS_UPDATE int update_persistent_clock(struct timespec now) {