patch-2.4.0-test11 linux/drivers/net/hamradio/soundmodem/sm.h

Next file: linux/drivers/net/hp-plus.c
Previous file: linux/drivers/net/hamradio/baycom_epp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/net/hamradio/soundmodem/sm.h linux/drivers/net/hamradio/soundmodem/sm.h
@@ -299,8 +299,6 @@
 
 #ifdef __i386__
 
-#define HAS_RDTSC (current_cpu_data.x86_capability & X86_FEATURE_TSC)
-
 /*
  * only do 32bit cycle counter arithmetic; we hope we won't overflow.
  * in fact, overflowing modems would require over 2THz CPU clock speeds :-)
@@ -308,7 +306,7 @@
 
 #define time_exec(var,cmd)                                              \
 ({                                                                      \
-	if (HAS_RDTSC) {                                                \
+	if (cpu_has_tsc) {                                              \
 		unsigned int cnt1, cnt2, cnt3;                          \
 		__asm__(".byte 0x0f,0x31" : "=a" (cnt1), "=d" (cnt3));  \
 		cmd;                                                    \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)