patch-2.2.18 linux/include/asm-i386/processor.h
Next file: linux/include/asm-i386/semaphore.h
Previous file: linux/include/asm-i386/page.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sat Nov 18 00:29:03 2000
- Orig file:
v2.2.17/include/asm-i386/processor.h
- Orig date:
Sat Sep 9 18:42:50 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-i386/processor.h linux/include/asm-i386/processor.h
@@ -36,7 +36,7 @@
int fdiv_bug;
int f00f_bug;
int coma_bug;
- unsigned long loops_per_sec;
+ unsigned long loops_per_jiffy;
unsigned long *pgd_quick;
unsigned long *pte_quick;
unsigned long pgtable_cache_sz;
@@ -326,5 +326,11 @@
#define init_task (init_task_union.task)
#define init_stack (init_task_union.stack)
+
+/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
+extern inline void rep_nop(void)
+{
+ __asm__ __volatile__("rep;nop");
+}
#endif /* __ASM_I386_PROCESSOR_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)