RE: Premptive vs non-premptive kernel.

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

 



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.


also, is need_sched is repalced by TIF_NEED_RESCHED  flag?

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/


[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