Re: [PATCH 1/8] PM: Add suspend block api.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Thursday, May 6, 2010 - 12:40 pm

On Thu, 6 May 2010, Rafael J. Wysocki wrote:


But how do you know that processes won't get unfrozen until all the 
pending IRQs have been handled?  Imagine something like this:

	CPU 0			CPU 1
	-----			-----
	Wake up non-boot CPUs
	Resume devices		Invoke the IRQ handler

	[ CPU 0 should wait here for the handler to finish, 
	  but it doesn't ]

	Defrost threads		Handler running...
	Workqueue routine runs
	Start another suspend
				Handler enables a suspend blocker,
				but it's too late

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/8] PM: Add suspend block api., Alan Stern, (Thu May 6, 12:40 pm)
Re: [PATCH 1/8] PM: Add suspend block api., Arve Hjønnevåg, (Thu May 6, 4:48 pm)