From patchwork Fri Jul 17 09:31:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xunlei Pang X-Patchwork-Id: 51228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8E9C522A8D for ; Fri, 17 Jul 2015 10:08:57 +0000 (UTC) Received: by wizo10 with SMTP id o10sf10790408wiz.0 for ; Fri, 17 Jul 2015 03:08:56 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=a2g4Dxxa16FkgsI7P63XDKUzrs8AkDfEaCDzrGNEg1s=; b=NA56TKA9XP8qHNBFM5QC7nrdSiOyu33FoFDRURZhLpdJv+fcLDO0I5E/+DMvh7/oKf rsx6M4bxaWVW7QmbGoxHz0qhYOe+GN21Kd5CJwtp7vYPz3ifWCFRsICixjbeqt6Prxc6 7MvF2xPlDDpK8nfvoNeO87862jqX/LBcys72nOOjX3/FZdywwjjKO1ba9bsBMP5Z8/Wb 4u84+LCreqm0LvaZK7Oy7IYD4esd2wBWlyl5ydunXUCUhU+mNgRMieZp1XtVEXMvH9Ah svIP1ARlma4UYW3Q+QPKmadwk1JWYkFsYGXa1OeFPo/b/+CFMewjWV4CLwuPxWEy8ukR SuXg== X-Gm-Message-State: ALoCoQnWFVam1N2kNlv3/1TGzBuXlP/oY4tRL8GI864DaQ1uFNLvWIuLksd5jKmMTPA9jEET6HjE X-Received: by 10.180.11.226 with SMTP id t2mr4238635wib.0.1437127736913; Fri, 17 Jul 2015 03:08:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.206 with SMTP id q14ls425809lal.58.gmail; Fri, 17 Jul 2015 03:08:56 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr14057740lbb.35.1437127736714; Fri, 17 Jul 2015 03:08:56 -0700 (PDT) Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com. [2a00:1450:4010:c04::22c]) by mx.google.com with ESMTPS id b10si9498295laf.38.2015.07.17.03.08.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 03:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) client-ip=2a00:1450:4010:c04::22c; Received: by lblf12 with SMTP id f12so58527856lbl.2 for ; Fri, 17 Jul 2015 03:08:56 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr13750345lbp.88.1437127736578; Fri, 17 Jul 2015 03:08:56 -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.108.230 with SMTP id hn6csp810020lbb; Fri, 17 Jul 2015 03:08:55 -0700 (PDT) X-Received: by 10.68.177.164 with SMTP id cr4mr28224421pbc.62.1437127734844; Fri, 17 Jul 2015 03:08:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si17865923par.193.2015.07.17.03.08.53; Fri, 17 Jul 2015 03:08:54 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757758AbbGQKIv (ORCPT + 28 others); Fri, 17 Jul 2015 06:08:51 -0400 Received: from mproxyhzb1.163.com ([123.58.178.201]:45024 "EHLO mproxyhzb1.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756567AbbGQKIu (ORCPT ); Fri, 17 Jul 2015 06:08:50 -0400 X-Greylist: delayed 1920 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Jul 2015 06:08:49 EDT Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp5 (Coremail) with SMTP id jtKowABXnViPy6hVO9hIAA--.7469S3; Fri, 17 Jul 2015 17:32:06 +0800 (CST) From: Xunlei Pang To: linux-kernel@vger.kernel.org Cc: Xunlei Pang , Mikael Starvik , Jesper Nilsson , John Stultz , Arnd Bergmann Subject: [PATCH] cris: time: Cleanup of persistent clock stuff Date: Fri, 17 Jul 2015 17:31:26 +0800 Message-Id: <1437125486-17299-1-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 X-CM-TRANSID: jtKowABXnViPy6hVO9hIAA--.7469S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFW5WFy7uFW3CF1rCr1xKrg_yoW8Ww48pw 4fCrnrGr4UuryYq3WjkrZ7G345Jrn5Jr47JayxJ34rZF18Zr15CryvyrWkZ398KFyfuay7 uF4FkFnIyw48Ca7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jmVbgUUUUU= X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbi7xY6v1Uwy31ZWgAAss Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: xlpang@126.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22c as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@126.com; dmarc=fail (p=NONE dis=NONE) header.from=126.com 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: , From: Xunlei Pang - Remove update_persistent_clock(), as it does nothing now. - Remove read_persistent_clock(), let it fall back to the weak version. Cc: Mikael Starvik Cc: Jesper Nilsson Cc: John Stultz Cc: Arnd Bergmann Signed-off-by: Xunlei Pang --- arch/cris/Kconfig | 1 - arch/cris/kernel/time.c | 25 ------------------------- 2 files changed, 26 deletions(-) diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index 0314e32..982d562 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig @@ -46,7 +46,6 @@ config CRIS select ARCH_WANT_IPC_PARSE_VERSION select GENERIC_IRQ_SHOW select GENERIC_IOMAP - select GENERIC_CMOS_UPDATE select MODULES_USE_ELF_RELA select CLONE_BACKWARDS2 select OLD_SIGSUSPEND diff --git a/arch/cris/kernel/time.c b/arch/cris/kernel/time.c index 7780d37..2dda6da 100644 --- a/arch/cris/kernel/time.c +++ b/arch/cris/kernel/time.c @@ -39,31 +39,6 @@ extern unsigned long loops_per_jiffy; /* init/main.c */ unsigned long loops_per_usec; -int set_rtc_mmss(unsigned long nowtime) -{ - D(printk(KERN_DEBUG "set_rtc_mmss(%lu)\n", nowtime)); - return 0; -} - -/* grab the time from the RTC chip */ -unsigned long get_cmos_time(void) -{ - return 0; -} - - -int update_persistent_clock(struct timespec now) -{ - return set_rtc_mmss(now.tv_sec); -} - -void read_persistent_clock(struct timespec *ts) -{ - ts->tv_sec = 0; - ts->tv_nsec = 0; -} - - extern void cris_profile_sample(struct pt_regs* regs); void