mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sched: Am I missing something?
@ 2009-09-21 13:22 Peter Williams
  2009-09-21 13:53 ` Peter Zijlstra
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Williams @ 2009-09-21 13:22 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Mike Galbraith, Peter Zijlstra, Linux Kernel Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-23 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 13:22 sched: Am I missing something? Peter Williams
2009-09-21 13:53 ` Peter Zijlstra
2009-09-21 23:53   ` Peter Williams
2009-09-23 14:36   ` Peter Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®