patch-2.1.115 linux/include/asm-sparc/smp.h
Next file: linux/include/asm-sparc/socket.h
Previous file: linux/include/asm-sparc/signal.h
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Thu Aug 6 12:03:52 1998
- Orig file:
v2.1.114/linux/include/asm-sparc/smp.h
- Orig date:
Thu Apr 23 20:21:38 1998
diff -u --recursive --new-file v2.1.114/linux/include/asm-sparc/smp.h linux/include/asm-sparc/smp.h
@@ -43,16 +43,6 @@
extern struct cpuinfo_sparc cpu_data[NR_CPUS];
extern unsigned long cpu_offset[NR_CPUS];
-struct klock_info {
- unsigned char kernel_flag;
- unsigned char akp;
-};
-
-extern struct klock_info klock_info;
-
-#define KLOCK_HELD 0xff
-#define KLOCK_CLEAR 0x00
-
/*
* Private routines/data
*/
@@ -109,6 +99,10 @@
extern __volatile__ int __cpu_logical_map[NR_CPUS];
extern unsigned long smp_proc_in_lock[NR_CPUS];
+/* As idle task checks need_resched in a tight loop, it is not necessary to
+ wake it up. -jj */
+#define smp_send_reschedule(cpu) do {} while (0)
+
extern __inline__ int cpu_logical_map(int cpu)
{
return __cpu_logical_map[cpu];
@@ -192,13 +186,6 @@
#define SMP_FROM_SYSCALL 2
#else /* !(__SMP__) */
-#ifndef __ASSEMBLY__
-extern __inline__ int cpu_logical_map(int cpu)
-{
- return cpu;
-}
-#endif
-#endif /* !(__SMP__) */
#define NO_PROC_ID 0xFF
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov