preempt_disable() - disables preemption on all processors?
am 28.09.2007 12:53:04 von Rajat Jain
Hi list,
Does the preempt_disable() disable preemption on all the processors or just the current processor?
Thanks,
Rajat
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: preempt_disable() - disables preemption on all processors?
am 28.09.2007 19:21:30 von Mulyadi Santosa
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 the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Re: preempt_disable() - disables preemption on all processors?
am 28.09.2007 19:42:05 von Ricardo Maraschini
------=_Part_2729_8191295.1191001325272
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 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@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>
------=_Part_2729_8191295.1191001325272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 <> 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
Please read the FAQ at
------=_Part_2729_8191295.1191001325272--
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ