On Sat, Jun 26, 2004 at 08:10:07 +0000, manish regmi wrote: > hello, > >Second, because kernel preemptions (preempting when the interrupt > >handler would of returned to kernel space) can only occur when > >preempt_count==0. If it is nonzero, then we cannot preempt. So we > >check for the state "need_resched!=0 and preempt_count==0" at the end of > >all interrupts. > > > > Robert Love > > But, why it is initialised to 1. Then preempion is disabled for it. Does > it do preempt_enable after initialization. Probably. You have the code ;-). > also, is need_sched is repalced by TIF_NEED_RESCHED flag? The TIF_NEED_RESCHED does not replace anything. It's an assembly variant. > thanks > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz>
Attachment:
signature.asc
Description: Digital signature