From mboxrd@z Thu Jan 1 00:00:00 1970 From: markus93@inbox.ru (=?UTF-8?B?TWV5ZXIgTGFuc2t5?=) Date: Thu, 22 Jan 2015 18:57:03 +0300 Subject: =?UTF-8?B?T25lIHF1ZXN0aW9u?= Message-ID: <1421942223.68903704@f406.i.mail.ru> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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