diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/lib/delay.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/lib/delay.c b/arch/x86_64/lib/delay.c index aed61a668a1b..33a873a3c223 100644 --- a/arch/x86_64/lib/delay.c +++ b/arch/x86_64/lib/delay.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
13 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
14 | #include <asm/delay.h> | 14 | #include <asm/delay.h> |
15 | #include <asm/msr.h> | ||
15 | 16 | ||
16 | #ifdef CONFIG_SMP | 17 | #ifdef CONFIG_SMP |
17 | #include <asm/smp.h> | 18 | #include <asm/smp.h> |
@@ -19,6 +20,12 @@ | |||
19 | 20 | ||
20 | int x86_udelay_tsc = 0; /* Delay via TSC */ | 21 | int x86_udelay_tsc = 0; /* Delay via TSC */ |
21 | 22 | ||
23 | int read_current_timer(unsigned long *timer_value) | ||
24 | { | ||
25 | rdtscll(*timer_value); | ||
26 | return 0; | ||
27 | } | ||
28 | |||
22 | void __delay(unsigned long loops) | 29 | void __delay(unsigned long loops) |
23 | { | 30 | { |
24 | unsigned bclock, now; | 31 | unsigned bclock, now; |