Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758690AbYFXN6g (ORCPT ); Tue, 24 Jun 2008 09:58:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753513AbYFXN63 (ORCPT ); Tue, 24 Jun 2008 09:58:29 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:42264 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752320AbYFXN62 (ORCPT ); Tue, 24 Jun 2008 09:58:28 -0400 Message-Id: <20080624135823.747587186@us.ibm.com> References: <20080624135823.417569216@us.ibm.com> User-Agent: quilt/0.46-1 Date: Tue, 24 Jun 2008 06: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<