lkml.org 
[lkml]   [2019]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectHow to know if there is a pending interrupt when they are masked?
Date

Hi,

today we have the possibility to mask the local interrupt with the
command local_irq_disable / local_irq_enable.

The power management path disables the local interrupt in order to
initiate a power down sequence. If there is a pending interrupt this one
will make the power down function to abort, thus exiting right after
calling the shutdown function after costly operations. It could be
interesting to check if there is a pending interrupt before initiating
the power down sequence.

Is there a way to know if there is a pending interrupt on the current
CPU when the local interrupt are disabled? Something like,
local_irq_pending() function ?

Thanks
-- Daniel


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

\
 
 \ /
  Last update: 2019-02-14 15:35    [W:0.038 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site