1*b3550164SArnd Bergmann // SPDX-License-Identifier: GPL-2.0 2*b3550164SArnd Bergmann /* 3*b3550164SArnd Bergmann * Timer tick function for architectures that lack generic clockevents, 4*b3550164SArnd Bergmann * consolidated here from m68k/ia64/parisc/arm. 5*b3550164SArnd Bergmann */ 6*b3550164SArnd Bergmann 7*b3550164SArnd Bergmann #include <linux/irq.h> 8*b3550164SArnd Bergmann #include <linux/profile.h> 9*b3550164SArnd Bergmann #include <linux/timekeeper_internal.h> 10*b3550164SArnd Bergmann 11*b3550164SArnd Bergmann #include "tick-internal.h" 12*b3550164SArnd Bergmann 13*b3550164SArnd Bergmann void legacy_timer_tick(unsigned long ticks) 14*b3550164SArnd Bergmann { 15*b3550164SArnd Bergmann if (ticks) 16*b3550164SArnd Bergmann xtime_update(ticks); 17*b3550164SArnd Bergmann update_process_times(user_mode(get_irq_regs())); 18*b3550164SArnd Bergmann profile_tick(CPU_PROFILING); 19*b3550164SArnd Bergmann } 20