From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cedric Le Goater Subject: [PATCH][RFC] freezer : add the TIF_FREEZE flag to all archs Date: Fri, 07 Dec 2007 14:50:04 +0100 Message-ID: <47594F8C.7070900@fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: linux-pm-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: "Rafael J. Wysocki" , linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Linux Containers List-Id: containers.vger.kernel.org From: Cedric Le Goater 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. If you think this is safe and not utterly stupid, I'll send the rest of the patchset exporting the refrigerator to all arches. Thanks, C. Signed-off-by: Cedric Le Goater --- 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-v850/thread_info.h | 2 ++ include/asm-xtensa/thread_info.h | 2 ++ 13 files changed, 25 insertions(+) Index: 2.6.24-rc4-mm1/include/asm-alpha/thread_info.h =================================================================== --- 2.6.24-rc4-mm1.orig/include/asm-alpha/thread_info.h +++ 2.6.24-rc4-mm1/include/asm-alpha/thread_info.h @@ -76,12 +76,14 @@ register struct thread_info *__current_t #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<