Re: differences in between 2.0 and 2.1 SMP?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 24 Nov 1998 00:29:16 +0000 (GMT)


> What are the architectural differences between SMP code in 2.0 and 2.1?
> I'm a very beginner kernel hacker and I'm still in the code grepping
> stage...
> it seems to me that only one of the CPUs can execute the kernel code...
> is that correct?

2.0.x only one CPU is _running_ in kernel at a time (others may be sleeping
on things but inside a kernel sleep). IRQs are forwarded to the CPU that
has the lock

2.1.x IRQs are taken on all CPUs spin locks guard data structures some kernel
subsystems are not subject to the main kernel lock at all

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/