lkml.org 
[lkml]   [2009]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsched: Am I missing something?
Or is the line:

p->prio = effective_prio(p);

in wake_up_new_task() an expensive no op.

As far as I can tell from reading the code, it will always be the case
that EITHER rt_prio(p->prio) is true OR p->prio == p->normal_prio when
this call is made and, in either case, the value of p->prio will be
unchanged. In addition, when this call is made p->normal_prio is
already equal to to normal_prio(p), so the side effects of the function
(setting p->normal_prio) are also unnecessary.

Am I correct or have I missed something?

Peter
--
Peter Williams pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce


\
 
 \ /
  Last update: 2009-09-21 15:25    [W:0.100 / U:3.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site