From patchwork Tue Jun 2 09:14:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xunlei Pang X-Patchwork-Id: 49352 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5E2E02052D for ; Tue, 2 Jun 2015 09:16:56 +0000 (UTC) Received: by lani11 with SMTP id i11sf43632152lan.3 for ; Tue, 02 Jun 2015 02:16:55 -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=hZagL1KPxEr+j5P5RrNcxMUiWLauu2fY5FhvDybouZw=; b=Bb/NyE093IYcrCHnwopbmNgj1dtE8oiLMDQmF+OoJlyXb33ff5AxxI4B0gDdiMB0sQ WR+DKgNivJngYPhGxjpP6mlED36WBYhT+MnF94I7EVNod5abtop+sqytytCchvqHe/pE LhpoCwcLFPqYx6Tm6GBKHcNbW0R1w0ipyymyEstApDTesE/9BzhUaryGZTuiYju4PdWl 6aycB03d+jR93eYdTuJFXaW9veasXlFO6nUYcyxmsVgbefKLR7DRPnGty/tZO2zbTBoh TyqB2/9bYRCMOgv2MwC6vx2sy4qat+kAUWM2tNmhSONtf8dOvJZrxuxIoqtU5iH/YLKw NMMA== X-Gm-Message-State: ALoCoQn9FpJLj2hPXe3YZTeyL4JoDO5Oes+KZlkRvHqALvzLtqjsl19y+8GmMIobn8N0SYdw56E0 X-Received: by 10.194.142.205 with SMTP id ry13mr24900232wjb.2.1433236615081; Tue, 02 Jun 2015 02:16:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.200 with SMTP id c8ls123278lab.81.gmail; Tue, 02 Jun 2015 02:16:54 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr24671016lag.112.1433236614885; Tue, 02 Jun 2015 02:16:54 -0700 (PDT) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com. [2a00:1450:4010:c04::231]) by mx.google.com with ESMTPS id pk3si14572269lbb.75.2015.06.02.02.16.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 02:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::231 as permitted sender) client-ip=2a00:1450:4010:c04::231; Received: by lbcmx3 with SMTP id mx3so100330425lbc.1 for ; Tue, 02 Jun 2015 02:16:54 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr25238253lbc.86.1433236614739; Tue, 02 Jun 2015 02:16:54 -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 hn6csp2914947lbb; Tue, 2 Jun 2015 02:16:53 -0700 (PDT) X-Received: by 10.66.144.40 with SMTP id sj8mr47730846pab.55.1433236612942; Tue, 02 Jun 2015 02:16:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oy6si25542974pdb.9.2015.06.02.02.16.51; Tue, 02 Jun 2015 02:16:52 -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 S1757104AbbFBJQh (ORCPT + 28 others); Tue, 2 Jun 2015 05:16:37 -0400 Received: from m50-110.126.com ([123.125.50.110]:43485 "EHLO m50-110.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755639AbbFBJQY (ORCPT ); Tue, 2 Jun 2015 05:16:24 -0400 Received: from localhost.localdomain (unknown [210.21.223.3]) by smtp4 (Coremail) with SMTP id jdKowACn3mAJdG1Vs_0qAQ--.3424S5; Tue, 02 Jun 2015 17:15:03 +0800 (CST) From: Xunlei Pang To: linux-kernel@vger.kernel.org Cc: rtc-linux@googlegroups.com, Alessandro Zummo , Alexandre Belloni , John Stultz , Arnd Bergmann , Xunlei Pang Subject: [PATCH v2 4/4] cris: time: Cleanup of persistent clock stuff Date: Tue, 2 Jun 2015 17:14:37 +0800 Message-Id: <1433236477-1724-4-git-send-email-xlpang@126.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433236477-1724-1-git-send-email-xlpang@126.com> References: <1433236477-1724-1-git-send-email-xlpang@126.com> X-CM-TRANSID: jdKowACn3mAJdG1Vs_0qAQ--.3424S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7WrW8tw1xZF1Utw1UtrW5Jrb_yoW8XF1kpa yfCrnrGr4j9ryYqF12k397W345JFs3Jrsrta4xJa4rZF18Zr15CrZ2yrWkZ398Kr97uay7 uFWFkFnxAw48Ca7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jMa0PUUUUU= X-Originating-IP: [210.21.223.3] X-CM-SenderInfo: p0ost0bj6rjloofrz/1tbiXBcNv1R0WctzDQAAs1 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::231 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@; 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. 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