Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753218AbYHAFJf (ORCPT ); Fri, 1 Aug 2008 01:09:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752877AbYHAFI2 (ORCPT ); Fri, 1 Aug 2008 01:08:28 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:41938 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752298AbYHAFIY (ORCPT ); Fri, 1 Aug 2008 01:08:24 -0400 Message-Id: <20080801050700.261080433@us.ibm.com> References: <20080801050659.924495279@us.ibm.com> User-Agent: quilt/0.46-1 Date: Thu, 31 Jul 2008 22:07:00 -0700 From: Matt Helsley To: Andrew Morton Cc: "Rafael J. Wysocki" , Paul Menage , Li Zefan , Linux-Kernel , Linux Containers , linux-pm@lists.linux-foundation.org, Cedric Le Goater , Pavel Machek , "Serge E. Hallyn" Subject: [PATCH 1/6] 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: 13843 Lines: 311 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 Acked-by: Pavel Machek Acked-by: Serge E. Hallyn Tested-by: Matt Helsley --- arch/parisc/include/asm/thread_info.h | 2 ++ arch/sparc/include/asm/thread_info_32.h | 2 ++ arch/sparc/include/asm/thread_info_64.h | 2 ++ include/asm-alpha/thread_info.h | 2 ++ include/asm-avr32/thread_info.h | 1 + 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-s390/thread_info.h | 2 ++ include/asm-um/thread_info.h | 2 ++ include/asm-xtensa/thread_info.h | 2 ++ 12 files changed, 22 insertions(+) Index: linux-2.6.27-rc1-mm1/arch/sparc/include/asm/thread_info_32.h =================================================================== --- linux-2.6.27-rc1-mm1.orig/arch/sparc/include/asm/thread_info_32.h +++ linux-2.6.27-rc1-mm1/arch/sparc/include/asm/thread_info_32.h @@ -137,10 +137,11 @@ BTFIXUPDEF_CALL(void, free_thread_info, #define TIF_USEDFPU 8 /* FPU was used by this task * this quantum (SMP) */ #define TIF_POLLING_NRFLAG 9 /* true if poll_idle() is polling * TIF_NEED_RESCHED */ #define TIF_MEMDIE 10 +#define TIF_FREEZE 19 /* is freezing for suspend */ /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<