RE: Premptive vs non-premptive kernel.

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

 



If TIF_NEED_RESCHED is a flag which specifies if we need to reschedule
or not then why we use need_resched process specific variable of
task_struct.

What's the difference between TIF_NEED_RESCHED and need_ressched?

Gaurav.

hi,
Someone said earlier TIF_NEED_RESCHED replaces nothing.
But, I saw in source that there is no need_resched on a task structure (2.6).
It has been replaced by TIF_NEED_RESCHED flag in thread_info structure.


struct thread_info {
...
unsigned long		flags;		/* low level flags */
...
};
#define TIF_NEED_RESCHED	3	/* rescheduling necessary */

Now the work of
task->need_sched = 1
is done by
set_tsk_need_resched(p);

(At least on i386)

regards manish

_________________________________________________________________
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