public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Question] one question about 'current' in scheduler_tick()
@ 2005-10-17  8:05 liyu
  2005-10-17  8:24 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: liyu @ 2005-10-17  8:05 UTC (permalink / raw)
  To: LKML

Hi, All.

    I found scheduler_tick() use current macro to get task_struct of 
current task.
   
    I seen scheduler_tick() is called every timer interrupt at most 
time. In this
case, I think scheduler_tick() is in interrupt context (enter kernel by 
interrupt),
So I have a hunch that there have not thread_info which it need in 
kernel stack. But
It seem it can work perfectly.
 
    I can not understand this. Would any expert like explain clearly for 
it ?

    Thanks in advanced.

-liyu



   

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

end of thread, other threads:[~2005-10-18  1:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-17  8:05 [Question] one question about 'current' in scheduler_tick() liyu
2005-10-17  8:24 ` Steven Rostedt
2005-10-17  9:02   ` liyu
2005-10-17  9:32     ` Steven Rostedt
2005-10-18  1:58       ` liyu

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