Re: scheduler_tick() confusing comment: called from fork code

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

 



On Mon, Dec 6, 2010 at 10:17 PM, Anuz Pratap Singh Tomar
<chambilkethakur@xxxxxxxxx> wrote:
>
>
> On Mon, Dec 6, 2010 at 4:13 PM, lalit mohan tripathi
> <lalit.tripathi@xxxxxxxxx> wrote:
>>
>> The comment for function:  void scheduler_tick(void) in sched.c seems
>> confusing:
>>
>>  [   It also gets called by the fork code, when changing the parent's
>> timeslices. ]
>>
>>  I'm not able to find it getting called from fork related code or any
>> other code except the timer interrupt.
>>  Is it commenting error?
>
> Can you please be more detailed. please put code and/or line number of what
> you are talking about?
>
I thought it was fairly simple by telling the function name and file.
Please find the code in 2.6.36 kernel.
I have suspicion on second line (It also.... timeslices.), is that
statement true?

3567 * This function gets called by the timer code, with HZ frequency.
3568 * We call it with interrupts disabled.
3569 *
3570 * It also gets called by the fork code, when changing the parent's
3571 * timeslices.
3572 */
3573void scheduler_tick(void)
3574{

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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