Skip to contentSkip to conversation

cris: time: Cleanup of persistent clock stuff

PATCH Applied Xunlei Pang 3 participants 3 messages Jul 17, 2015 – Oct 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cris: time: Cleanup of persistent clock stuff

From: Xunlei Pang <[email protected]>

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

Cc Mikael Starvik <[email protected]>
Cc Jesper Nilsson <[email protected]>
Cc John Stultz <[email protected]>
Cc Arnd Bergmann <[email protected]>
---
 arch/cris/Kconfig       |  1 -
 arch/cris/kernel/time.c | 25 -------------------------
 2 files changed, 26 deletions(-)
arch/cris/Kconfig +0 -1
index 0314e32..982d562 100644
@@ -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
arch/cris/kernel/time.c +0 -25
index 7780d37..2dda6da 100644
@@ -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
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Xunlei Pang

From: Xunlei Pang <[email protected]>

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

Cc Mikael Starvik <[email protected]>
Cc Jesper Nilsson <[email protected]>
Cc John Stultz <[email protected]>
Cc Arnd Bergmann <[email protected]>