Hi,The following two patches clean up the core suspend/resume code a bit.I hope no one will have any objections to them, as I'd like to include them inmy next pull request.Please review.Rafael