summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/smp.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
commitc7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch)
tree3682407a599b8f9f03fc096298134cafba1c9b2f /include/asm-sparc/smp.h
parent1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff)
o Merge with Linux 2.1.116.
o New Newport console code. o New G364 console code.
Diffstat (limited to 'include/asm-sparc/smp.h')
-rw-r--r--include/asm-sparc/smp.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/include/asm-sparc/smp.h b/include/asm-sparc/smp.h
index 8ecf68d08..3cbb49c86 100644
--- a/include/asm-sparc/smp.h
+++ b/include/asm-sparc/smp.h
@@ -43,16 +43,6 @@ struct cpuinfo_sparc {
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_number_map[NR_CPUS];
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 @@ extern __inline__ int hard_smp_processor_id(void)
#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