public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Query]: tick-sched: can idle_active be false in tick_nohz_idle_exit()?
@ 2014-04-09 11:58 Viresh Kumar
  2014-04-10 14:56 ` Frederic Weisbecker
  0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2014-04-09 11:58 UTC (permalink / raw)
  To: Frédéric Weisbecker, Thomas Gleixner
  Cc: Linux Kernel Mailing List, Lists linaro-kernel

Hi Guys,

File: kernel/time/tick-sched.c
function: tick_nohz_idle_exit()

We are checking here if idle_active is true or not and then
do some stuff. But is it possible that idle_active be false
here?

The sequence as far as I understood is:
idle-loop:

tick_nohz_idle_enter(), i.e. idle_active = true;
local_irq_disable()

IDLE
.
.

wake up due to IPI ??

local_irq_enable()
    tick_nohz_irq_enter(), i.e. idle_active = false;
    tick_nohz_irq_exit(), i.e. idle_active = true;

tick_nohz_idle_exit()

How can idle_active be false here?

--
viresh

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

end of thread, other threads:[~2014-04-11 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09 11:58 [Query]: tick-sched: can idle_active be false in tick_nohz_idle_exit()? Viresh Kumar
2014-04-10 14:56 ` Frederic Weisbecker
2014-04-11  9:54   ` Viresh Kumar
2014-04-11 14:35     ` Frederic Weisbecker

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