patch-2.1.36 linux/include/asm-i386/smp.h
Next file: linux/include/asm-i386/smp_lock.h
Previous file: linux/include/asm-i386/semaphore.h
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Tue Apr 15 21:47:24 1997
- Orig file:
v2.1.35/linux/include/asm-i386/smp.h
- Orig date:
Thu Feb 27 10:57:31 1997
diff -u --recursive --new-file v2.1.35/linux/include/asm-i386/smp.h linux/include/asm-i386/smp.h
@@ -234,52 +234,6 @@
return GET_APIC_ID(*(unsigned long *)(apic_reg+APIC_ID));
}
-/* These read/change the "processes available" counter in the scheduler. */
-extern __inline__ __volatile__ void inc_smp_counter(volatile int *ctr)
-{
- int cpu = smp_processor_id();
- while(set_bit(31, ctr))
- {
- while(test_bit(31,ctr))
- {
- if(clear_bit(cpu,&smp_invalidate_needed))
- {
- unsigned long tmpreg;
- __asm__ __volatile__("movl %%cr3,%0\n\tmovl %0,%%cr3"
- : "=r" (tmpreg) : : "memory");
- set_bit(cpu,&cpu_callin_map[0]);
- }
- }
- }
- *ctr = (*ctr + 1);
- clear_bit(31, ctr);
-}
-
-extern __inline__ __volatile__ void dec_smp_counter(volatile int *ctr)
-{
- int cpu = smp_processor_id();
- while(set_bit(31, ctr))
- {
- while(test_bit(31,ctr))
- {
- if(clear_bit(cpu,&smp_invalidate_needed))
- {
- unsigned long tmpreg;
- __asm__ __volatile__("movl %%cr3,%0\n\tmovl %0,%%cr3"
- : "=r" (tmpreg) : : "memory");
- set_bit(cpu,&cpu_callin_map[0]);
- }
- }
- }
- *ctr = (*ctr - 1);
- clear_bit(31, ctr);
-}
-
-extern __inline__ __volatile__ int read_smp_counter(volatile int *ctr)
-{
- return (*ctr & 0x7fffffff);
-}
-
#endif /* !ASSEMBLY */
#define NO_PROC_ID 0xFF /* No processor magic marker */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov