And the get_cpu() ? Its not supposed to disable preemption in all cpus?
from include/linux/smp.h:

#define get_cpu()               ({ preempt_disable(); smp_processor_id(); })

rjm;

On 9/28/07, Mulyadi Santosa <[EMAIL PROTECTED]> wrote:
>
> HI...
> > Does the preempt_disable() disable preemption on all the processors or
> just the current processor?
>
> Fast check on schedule() code makes me believe it just disables the
> preemption on current processor which call preempt_disable().
>
> regards,
>
> Mulyadi
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [EMAIL PROTECTED]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

Reply via email to