Re: preempt_disable() - disables preemption on all processors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mulyadi.santosa@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux