x86: Fix compilation bug in kprobes' twobyte_is_boostable
[linux-btrfs-devel.git] / arch / arm / include / asm / localtimer.h
blobff66638ff54d5ad7067e4f246d392059eef1a7bf
1 /*
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.
9 */
10 #ifndef __ASM_ARM_LOCALTIMER_H
11 #define __ASM_ARM_LOCALTIMER_H
13 #include <linux/errno.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);
23 * Called from assembly, this is the local timer IRQ handler
25 asmlinkage void do_local_timer(struct pt_regs *);
28 #ifdef CONFIG_LOCAL_TIMERS
30 #ifdef CONFIG_HAVE_ARM_TWD
32 #include "smp_twd.h"
34 #define local_timer_ack() twd_timer_ack()
36 #else
39 * Platform provides this to acknowledge a local timer IRQ.
40 * Returns true if the local timer IRQ is to be processed.
42 int local_timer_ack(void);
44 #endif
47 * Setup a local timer interrupt for a CPU.
49 int local_timer_setup(struct clock_event_device *);
51 #else
53 static inline int local_timer_setup(struct clock_event_device *evt)
55 return -ENXIO;
57 #endif
59 #endif