]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/arm/include/asm/localtimer.h
2 * arch/arm/include/asm/localtimer.h
4 * Copyright (C) 2004-2005 ARM Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #ifndef __ASM_ARM_LOCALTIMER_H
11 #define __ASM_ARM_LOCALTIMER_H
13 #include <linux/interrupt.h>
15 struct clock_event_device
;
18 * Setup a per-cpu timer, whether it be a local timer or dummy broadcast
20 void percpu_timer_setup(void);
22 #ifdef CONFIG_LOCAL_TIMERS
24 #ifdef CONFIG_HAVE_ARM_TWD
28 #define local_timer_stop(c) twd_timer_stop((c))
33 * Stop the local timer
35 void local_timer_stop(struct clock_event_device
*);
40 * Setup a local timer interrupt for a CPU.
42 int local_timer_setup(struct clock_event_device
*);
46 static inline int local_timer_setup(struct clock_event_device
*evt
)
51 static inline void local_timer_stop(struct clock_event_device
*evt
)