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

Re: General Question on Scheduler



> ...
>         /*
>          * This just switches the register state and the
>          * stack.
>          */
>         switch_to(prev, next, prev);
>         __schedule_tail(prev);
>
> same_process:


same_process ??? is this prev that we had previously used (ie before calling 
switch_to) and if u see the __schedule_tail code ..it also refers to 
'current'. Now what is the difference between prev and current on return from 
switch_to in schedule().


-Anurekh
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/