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