Browse Source

x86: use rdtscll in read_current_timer for i386.

This way we achieve the same code for both arches.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Glauber Costa 17 năm trước cách đây
mục cha
commit
a76febe975
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch/x86/lib/delay_32.c

+ 1 - 1
arch/x86/lib/delay_32.c

@@ -98,7 +98,7 @@ void use_tsc_delay(void)
 int __devinit read_current_timer(unsigned long *timer_val)
 int __devinit read_current_timer(unsigned long *timer_val)
 {
 {
 	if (delay_fn == delay_tsc) {
 	if (delay_fn == delay_tsc) {
-		rdtscl(*timer_val);
+		rdtscll(*timer_val);
 		return 0;
 		return 0;
 	}
 	}
 	return -1;
 	return -1;