Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cris: time: Cleanup of persistent clock stuff

- 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: John Stultz <john.stultz@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Acked-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jesper Nilsson <jespern@axis.com>

authored by

Xunlei Pang and committed by
Jesper Nilsson
9f4137fa fad5a06b

-26
-1
arch/cris/Kconfig
··· 57 57 select ARCH_WANT_IPC_PARSE_VERSION 58 58 select GENERIC_IRQ_SHOW 59 59 select GENERIC_IOMAP 60 - select GENERIC_CMOS_UPDATE 61 60 select MODULES_USE_ELF_RELA 62 61 select CLONE_BACKWARDS2 63 62 select OLD_SIGSUSPEND
-25
arch/cris/kernel/time.c
··· 39 39 extern unsigned long loops_per_jiffy; /* init/main.c */ 40 40 unsigned long loops_per_usec; 41 41 42 - int set_rtc_mmss(unsigned long nowtime) 43 - { 44 - D(printk(KERN_DEBUG "set_rtc_mmss(%lu)\n", nowtime)); 45 - return 0; 46 - } 47 - 48 - /* grab the time from the RTC chip */ 49 - unsigned long get_cmos_time(void) 50 - { 51 - return 0; 52 - } 53 - 54 - 55 - int update_persistent_clock(struct timespec now) 56 - { 57 - return set_rtc_mmss(now.tv_sec); 58 - } 59 - 60 - void read_persistent_clock(struct timespec *ts) 61 - { 62 - ts->tv_sec = 0; 63 - ts->tv_nsec = 0; 64 - } 65 - 66 - 67 42 extern void cris_profile_sample(struct pt_regs* regs); 68 43 69 44 void