On Thu, 2006-04-20 at 16:32 -0700, Arun Srinivasan wrote: > I have a short question about locking/preemption. On a Uni-proc, I > understand we have to implement locking for global data structures, > when kernel preemption is enabled (as in 2.6) and its not neccessary > when kernel preemption is disabled.And in SMP locking always has to be > implemented. you just always have to implement locking; if for whatever reason said locking can be lightweight (say on a specific type of UP kernel build) the kernel headers will turn the locks into something that compiles away. (and HT is SMP for all intents and purposes, as is dual core) -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/