[PATCH] PCI: add MODALIAS to hotplug event for pci devices
[linux-2.6/verdex.git] / arch / i386 / kernel / timers / timer_none.c
blob4ea2f414dbbde0b03847e0b51af523df2c4e5815
1 #include <linux/init.h>
2 #include <asm/timer.h>
4 static void mark_offset_none(void)
6 /* nothing needed */
9 static unsigned long get_offset_none(void)
11 return 0;
14 static unsigned long long monotonic_clock_none(void)
16 return 0;
19 static void delay_none(unsigned long loops)
21 int d0;
22 __asm__ __volatile__(
23 "\tjmp 1f\n"
24 ".align 16\n"
25 "1:\tjmp 2f\n"
26 ".align 16\n"
27 "2:\tdecl %0\n\tjns 2b"
28 :"=&a" (d0)
29 :"0" (loops));
32 /* none timer_opts struct */
33 struct timer_opts timer_none = {
34 .name = "none",
35 .mark_offset = mark_offset_none,
36 .get_offset = get_offset_none,
37 .monotonic_clock = monotonic_clock_none,
38 .delay = delay_none,