patch-2.4.23 linux-2.4.23/arch/x86_64/kernel/smp.c
Next file: linux-2.4.23/arch/x86_64/kernel/smpboot.c
Previous file: linux-2.4.23/arch/x86_64/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/x86_64/kernel/smp.c
- Orig date:
2003-08-25 04:44:40.000000000 -0700
diff -urN linux-2.4.22/arch/x86_64/kernel/smp.c linux-2.4.23/arch/x86_64/kernel/smp.c
@@ -548,26 +548,3 @@
atomic_inc(&call_data->finished);
}
}
-
-/* Slow. Should be only used for debugging. */
-int slow_smp_processor_id(void)
-{
- int stack_location;
- unsigned long sp = (unsigned long)&stack_location;
- int offset = 0, cpu;
-
- for (offset = 0; (cpu_online_map >> offset); offset = cpu + 1) {
- cpu = ffz(~(cpu_online_map >> offset));
-
- if (sp >= (u64)cpu_pda[cpu].irqstackptr - IRQSTACKSIZE &&
- sp <= (u64)cpu_pda[cpu].irqstackptr)
- return cpu;
-
- unsigned long estack = init_tss[cpu].ist[0] - EXCEPTION_STKSZ;
- if (sp >= estack && sp <= estack+(1<<(PAGE_SHIFT+EXCEPTION_STK_ORDER)))
- return cpu;
- }
-
- return stack_smp_processor_id();
-}
-
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)