lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKohpon3vJzL51V9aOBcXKJC4nr3K-0q77HsxFi+=ACUqNqhcA@mail.gmail.com>
Date:	Wed, 9 Apr 2014 17:28:57 +0530
From:	Viresh Kumar <viresh.kumar@...aro.org>
To:	Frédéric Weisbecker <fweisbec@...il.com>,
	Thomas Gleixner <tglx@...utronix.de>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Lists linaro-kernel <linaro-kernel@...ts.linaro.org>
Subject: [Query]: tick-sched: can idle_active be false in tick_nohz_idle_exit()?

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ