* One question
@ 2015-01-22 15:57 Meyer Lansky
2015-01-22 16:20 ` Giedrius Statkevičius
0 siblings, 1 reply; 2+ messages in thread
From: Meyer Lansky @ 2015-01-22 15:57 UTC (permalink / raw)
To: kernelnewbies
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150122/18fe4d6e/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* One question
2015-01-22 15:57 One question Meyer Lansky
@ 2015-01-22 16:20 ` Giedrius Statkevičius
0 siblings, 0 replies; 2+ messages in thread
From: Giedrius Statkevičius @ 2015-01-22 16:20 UTC (permalink / raw)
To: kernelnewbies
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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
Check the comment just above the function definition. Does that help?
--
Thanks,
Giedrius
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-22 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 15:57 One question Meyer Lansky
2015-01-22 16:20 ` Giedrius Statkevičius
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.