Re: One question

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

 



On 2015.01.22 17:57, Meyer Lansky wrote:
>  I continue to study the task scheduler O(1) 
> 
> I do not understand what makes this part of the code ?
> 1317 void kick_process(struct task_struct *p)
> 1318 {
> 1319         int cpu;
> 1320 
> 1321         preempt_disable();
> 1322         cpu = task_cpu(p);
> 1323         if ((cpu != smp_processor_id()) && task_curr(p))
> 1324                 smp_send_reschedule(cpu);
> 1325         preempt_enable();
> link to source code :  http://lxr.free-electrons.com/source/kernel/sched/core.c#L1317
> 
> what it means to do this function  kick_process ? 
> I just met her for the first time
> 
>  
> If you say I will be very grateful to you for your help
> 
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
Check the comment just above the function definition. Does that help?

-- 
Thanks,
Giedrius

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[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