patch-2.1.36 linux/include/asm-sparc/smp.h

Next file: linux/include/asm-sparc/smp_lock.h
Previous file: linux/include/asm-sparc/semaphore.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/include/asm-sparc/smp.h linux/include/asm-sparc/smp.h
@@ -96,48 +96,6 @@
 	return cpuid;
 }
 
-extern __volatile__ int smp_process_available;
-
-extern __inline__ int smp_swap(volatile int *addr, int value)
-{
-	__asm__ __volatile__("swap [%2], %0\n\t" :
-			     "=&r" (value) :
-			     "0" (value), "r" (addr));
-	return value;
-}
-
-extern __inline__ __volatile__ void inc_smp_counter(volatile int *ctr)
-{
-	int tmp;
-
-	while((tmp = smp_swap(ctr, -1)) == -1)
-		while(*ctr == -1)
-			;
-
-	*ctr = (tmp + 1);
-}
-
-extern __inline__ __volatile__ void dec_smp_counter(volatile int *ctr)
-{
-	int tmp;
-
-	while((tmp = smp_swap(ctr, -1)) == -1)
-		while(*ctr == -1)
-			;
-
-	*ctr = (tmp - 1);
-}
-
-extern __inline__ __volatile__ int read_smp_counter(volatile int *ctr)
-{
-	int value;
-
-	while((value = *ctr) == -1)
-		;
-
-	return value;
-}
-
 #endif /* !(__ASSEMBLY__) */
 
 /* Sparc specific messages. */
@@ -154,13 +112,13 @@
 #define MBOX_IDLECPU2         0xFD
 #define MBOX_STOPCPU2         0xFE
 
-#define NO_PROC_ID            0xFF
-
 #define PROC_CHANGE_PENALTY     20
 
 #define SMP_FROM_INT		1
 #define SMP_FROM_SYSCALL	2
 
 #endif /* !(__SMP__) */
+
+#define NO_PROC_ID            0xFF
 
 #endif /* !(_SPARC_SMP_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov