kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: giedrius.statkevicius@gmail.com (Giedrius Statkevičius)
To: kernelnewbies@lists.kernelnewbies.org
Subject: One question
Date: Thu, 22 Jan 2015 18:20:59 +0200	[thread overview]
Message-ID: <54C1236B.3070308@gmail.com> (raw)
In-Reply-To: <1421942223.68903704@f406.i.mail.ru>

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

      reply	other threads:[~2015-01-22 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22 15:57 One question Meyer Lansky
2015-01-22 16:20 ` Giedrius Statkevičius [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C1236B.3070308@gmail.com \
    --to=giedrius.statkevicius@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).