ia64/xen-unstable

changeset 8999:a4a4a28a1686

[IA64] warning removal: NR_CPUS

linux/threads nullified (moved to linux-null).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Mon Feb 27 13:31:10 2006 -0700 (2006-02-27)
parents 21f633fd90e4
children a220579c2aa8
files xen/include/asm-ia64/linux-null/linux/threads.h xen/include/asm-ia64/linux/README.origin xen/include/asm-ia64/linux/threads.h
line diff
     2.1 --- a/xen/include/asm-ia64/linux/README.origin	Mon Feb 27 13:16:16 2006 -0700
     2.2 +++ b/xen/include/asm-ia64/linux/README.origin	Mon Feb 27 13:31:10 2006 -0700
     2.3 @@ -26,7 +26,6 @@ seqlock.h		-> linux/include/linux/seqloc
     2.4  sort.h			-> linux/include/linux/sort.h
     2.5  stddef.h		-> linux/include/linux/stddef.h
     2.6  thread_info.h		-> linux/include/linux/thread_info.h
     2.7 -threads.h		-> linux/include/linux/threads.h
     2.8  time.h			-> linux/include/linux/time.h
     2.9  timex.h			-> linux/include/linux/timex.h
    2.10  topology.h		-> linux/include/linux/topology.h
     3.1 --- a/xen/include/asm-ia64/linux/threads.h	Mon Feb 27 13:16:16 2006 -0700
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,36 +0,0 @@
     3.4 -#ifndef _LINUX_THREADS_H
     3.5 -#define _LINUX_THREADS_H
     3.6 -
     3.7 -#include <linux/config.h>
     3.8 -
     3.9 -/*
    3.10 - * The default limit for the nr of threads is now in
    3.11 - * /proc/sys/kernel/threads-max.
    3.12 - */
    3.13 -
    3.14 -/*
    3.15 - * Maximum supported processors that can run under SMP.  This value is
    3.16 - * set via configure setting.  The maximum is equal to the size of the
    3.17 - * bitmasks used on that platform, i.e. 32 or 64.  Setting this smaller
    3.18 - * saves quite a bit of memory.
    3.19 - */
    3.20 -#ifdef CONFIG_SMP
    3.21 -#define NR_CPUS		CONFIG_NR_CPUS
    3.22 -#else
    3.23 -#define NR_CPUS		1
    3.24 -#endif
    3.25 -
    3.26 -#define MIN_THREADS_LEFT_FOR_ROOT 4
    3.27 -
    3.28 -/*
    3.29 - * This controls the default maximum pid allocated to a process
    3.30 - */
    3.31 -#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
    3.32 -
    3.33 -/*
    3.34 - * A maximum of 4 million PIDs should be enough for a while:
    3.35 - */
    3.36 -#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
    3.37 -	(sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
    3.38 -
    3.39 -#endif