Re: preempt_disable() as a synchronization tool

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

 



> Firstly, Does preempt_disable() disable the preemption on all the
> processors or on just the local processor?
Only on the local cpu. This is for disabling preemption and protecting your critical section 
for per-cpu kernel space process context data.

> Lastly, is it allowable to schedule / sleep immediately after a call
> to preempt_disable()?
IMO: schedule() internally disables preemption before doing a context
switch, so may be ok to schedule between preempt disable and enable. 




--
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