Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757242AbYGGW7I (ORCPT ); Mon, 7 Jul 2008 18:59:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754889AbYGGW63 (ORCPT ); Mon, 7 Jul 2008 18:58:29 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:58364 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754372AbYGGW61 (ORCPT ); Mon, 7 Jul 2008 18:58:27 -0400 Message-Id: <20080707225823.805730143@us.ibm.com> References: <20080707225823.502032693@us.ibm.com> User-Agent: quilt/0.46-1 Date: Mon, 07 Jul 2008 15:58:24 -0700 From: Matt Helsley To: "Rafael J. Wysocki" Cc: Paul Menage , Pavel Machek , Linux-Kernel , linux-pm@lists.linux-foundation.org, Linux Containers , Cedric Le Goater Subject: [PATCH 1/4] Container Freezer: Add TIF_FREEZE flag to all architectures Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 14213 Lines: 321 From: Cedric Le Goater Subject: [PATCH 1/4] Container Freezer: Add TIF_FREEZE flag to all architectures This patch is the first step in making the refrigerator() available to all architectures, even for those without power management. The purpose of such a change is to be able to use the refrigerator() in a new control group subsystem which will implement a control group freezer. Signed-off-by: Cedric Le Goater Signed-off-by: Matt Helsley Tested-by: Matt Helsley --- include/asm-alpha/thread_info.h | 2 ++ include/asm-avr32/thread_info.h | 2 ++ include/asm-cris/thread_info.h | 2 ++ include/asm-h8300/thread_info.h | 2 ++ include/asm-m68k/thread_info.h | 1 + include/asm-m68knommu/thread_info.h | 2 ++ include/asm-parisc/thread_info.h | 2 ++ include/asm-s390/thread_info.h | 2 ++ include/asm-sparc/thread_info.h | 2 ++ include/asm-sparc64/thread_info.h | 2 ++ include/asm-um/thread_info.h | 2 ++ include/asm-xtensa/thread_info.h | 2 ++ 12 files changed, 23 insertions(+) Index: linux-2.6.26-rc5-mm2/include/asm-alpha/thread_info.h =================================================================== --- linux-2.6.26-rc5-mm2.orig/include/asm-alpha/thread_info.h +++ linux-2.6.26-rc5-mm2/include/asm-alpha/thread_info.h @@ -72,16 +72,18 @@ register struct thread_info *__current_t #define TIF_UAC_NOPRINT 5 /* see sysinfo.h */ #define TIF_UAC_NOFIX 6 #define TIF_UAC_SIGBUS 7 #define TIF_MEMDIE 8 #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal */ +#define TIF_FREEZE 19 /* is freezing for suspend */ #define _TIF_SYSCALL_TRACE (1<