Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757988AbYHKXxw (ORCPT ); Mon, 11 Aug 2008 19:53:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754897AbYHKXxd (ORCPT ); Mon, 11 Aug 2008 19:53:33 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:38788 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754438AbYHKXxc (ORCPT ); Mon, 11 Aug 2008 19:53:32 -0400 Message-Id: <20080811235324.279345521@us.ibm.com> References: <20080811235323.872291138@us.ibm.com> User-Agent: quilt/0.46-1 Date: Mon, 11 Aug 2008 16:53:24 -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" , Nigel Cunningham Subject: [PATCH 1/5] 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: 11721 Lines: 256 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 Acked-by: Rafael J. Wysocki Acked-by: Nigel Cunningham 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 @@ -139,6 +139,7 @@ BTFIXUPDEF_CALL(void, free_thread_info, #define TIF_POLLING_NRFLAG 9 /* true if poll_idle() is polling * TIF_NEED_RESCHED */ #define TIF_MEMDIE 10 +#define TIF_FREEZE 11 /* is freezing for suspend */ /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<