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

ARM: rpc: use legacy_timer_tick

rpc is the only user of the timer_tick() function now, and can
just call the newly added generic version instead.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+2 -17
+1
arch/arm/Kconfig
··· 452 452 select HAVE_IDE 453 453 select HAVE_PATA_PLATFORM 454 454 select ISA_DMA_API 455 + select LEGACY_TIMER_TICK 455 456 select NEED_MACH_IO_H 456 457 select NEED_MACH_MEMORY_H 457 458 select NO_IOPORT_MAP
-2
arch/arm/include/asm/mach/time.h
··· 7 7 #ifndef __ASM_ARM_MACH_TIME_H 8 8 #define __ASM_ARM_MACH_TIME_H 9 9 10 - extern void timer_tick(void); 11 - 12 10 typedef void (*clock_access_fn)(struct timespec64 *); 13 11 extern int register_persistent_clock(clock_access_fn read_persistent); 14 12
-14
arch/arm/kernel/time.c
··· 60 60 EXPORT_SYMBOL(profile_pc); 61 61 #endif 62 62 63 - #ifndef CONFIG_GENERIC_CLOCKEVENTS 64 - /* 65 - * Kernel system timer support. 66 - */ 67 - void timer_tick(void) 68 - { 69 - profile_tick(CPU_PROFILING); 70 - xtime_update(1); 71 - #ifndef CONFIG_SMP 72 - update_process_times(user_mode(get_irq_regs())); 73 - #endif 74 - } 75 - #endif 76 - 77 63 static void dummy_clock_access(struct timespec64 *ts) 78 64 { 79 65 ts->tv_sec = 0;
+1 -1
arch/arm/mach-rpc/time.c
··· 81 81 ioc_timer_interrupt(int irq, void *dev_id) 82 82 { 83 83 ioc_time += RPC_LATCH; 84 - timer_tick(); 84 + legacy_timer_tick(1); 85 85 return IRQ_HANDLED; 86 86 } 87 87