From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754241Ab2A3WEZ (ORCPT ); Mon, 30 Jan 2012 17:04:25 -0500 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:47680 "EHLO e28smtp04.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753908Ab2A3WEX (ORCPT ); Mon, 30 Jan 2012 17:04:23 -0500 From: "Srivatsa S. Bhat" Subject: [PATCH 0/4] PM / Freezer: Fix the semantics of thaw_processes() and thaw_kernel_threads() To: rjw@sisk.pl Cc: pavel@ucw.cz, len.brown@intel.com, tj@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Srivatsa S. Bhat" Date: Tue, 31 Jan 2012 03:34:11 +0530 Message-ID: <20120130220259.9442.70091.stgit@srivatsabhat.in.ibm.com> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit x-cbid: 12013022-5564-0000-0000-0000012A455A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the introduction of thaw_kernel_threads(), we can now finally fix the semantics of thawing tasks, in such a way as to be just the opposite of how tasks are frozen. This opens up some opportunities for code cleanup as well. This patchset implements both of these improvements. This patchset applies on top of the patch posted at https://lkml.org/lkml/2012/1/30/439 -- Srivatsa S. Bhat (4): PM/Freezer: Make thaw_processes() thaw only userspace tasks PM/Freezer: Use thaw_processes() and thaw_kernel_threads() correctly PM/Hibernate: Thaw kernel threads in hibernation_snapshot() in error/test path PM/Hibernate: Refactor and simplify freezer_test_done kernel/power/hibernate.c | 22 +++++++++++++++------- kernel/power/power.h | 15 +++++++++++++-- kernel/power/process.c | 13 ++++++------- kernel/power/user.c | 20 ++++++++++++-------- 4 files changed, 46 insertions(+), 24 deletions(-) Regards, Srivatsa S. Bhat IBM Linux Technology Center