Thread (33 messages) 33 messages, 8 authors, 2012-06-26

try_to_freeze() called with IRQs disabled on ARM

From: tj@kernel.org (Tejun Heo)
Date: 2011-08-23 22:17:15
Also in: lkml

On Wed, Aug 24, 2011 at 12:13 AM, Russell King - ARM Linux
[off-list ref] wrote:
Thereby entirely preventing threads from being frozen? ?You're asking
me to effectively disable suspend/resume on an architecture where it's
heavily used. ?That's not a good idea, and would be an out-right
regression.
Eh? So, it's supposed to enter refrigerator with IRQ disabled? Then,
moving might_sleep() inside refrigerator() doesn't help either, does
it? Then we should be doing is,

if (freezing() && IRQ disabled) {
      bust on IRQ;
      try_to_freeze();
      replug IRQ;
}

But, that can't be right. The current code isn't triggering warning
from scheduler code, right? If the above is the case, it should be
triggering that. What am I missing?

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help