Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186663

[PATCH] cris: time: Cleanup of persistent clock stuff

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Xunlei Pang <xlpang@126.com>
Newsgroups linux.kernel
Subject [PATCH] cris: time: Cleanup of persistent clock stuff
Date Fri, 17 Jul 2015 12:10:01 +0200
Message-ID <pNaKB-2i1-9@gated-at.bofh.it> (permalink)
X-Original-To linux-kernel@vger.kernel.org
X-Greylist delayed 1920 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Jul 2015 06:08:49 EDT
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=wN4KtqZbxK9CdexCI9 1y/pV0S0OR8pVW0RUOUYI0YTw=; b=RubQ0Nze/vu0S5GRdttQwR3L9mFBsr/o6I qRMnU+Z8C8S4/RO3SaNApOy3UPC+ZYTzOvwL2PE7msEhh0xcdpcfX5Fu39ojp+/1 +be6aJA4KKqQtXR7GcAplI+nCxoeTfpcSJhq8+1OcSk6DtHqSaaOh9OioP2bpLUJ GZUJfIxdc=
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 robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 72
Organization linux.* mail to news gateway
X-Original-Cc Xunlei Pang <pang.xunlei@linaro.org>, Mikael Starvik <starvik@axis.com>, Jesper Nilsson <jesper.nilsson@axis.com>, John Stultz <john.stultz@linaro.org>, Arnd Bergmann <arnd@arndb.de>
X-Original-Date Fri, 17 Jul 2015 17:31:26 +0800
X-Original-Message-ID <1437125486-17299-1-git-send-email-xlpang@126.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1186663

Show key headers only | View raw


From: Xunlei Pang <pang.xunlei@linaro.org>

- Remove update_persistent_clock(), as it does nothing now.
- Remove read_persistent_clock(), let it fall back to the weak version.

Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
---
 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
-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] cris: time: Cleanup of persistent clock stuff Xunlei Pang <xlpang@126.com> - 2015-07-17 12:10 +0200

csiph-web