In 2.6.0 kernel,
context_switch function is the only one which calls switch_to, and the first argument and the third argument are same. Is it not redundant?
static inline task_t * context_switch(runqueue_t *rq, task_t *prev, task_t *next)
{
....
switch_to(prev, next, prev);
....
}
Thanks in advance !
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/