Re: General Question on Scheduler

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

 



> ...
>         /*
>          * 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/


[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