From: James S. <jsi...@us...> - 2001-11-19 17:25:59
|
Update of /cvsroot/linux-mips/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv20274 Modified Files: threads.h Log Message: On MIPS for the sake of 32-bit machines define NR_CPUS as the number of bits in a long. Index: threads.h =================================================================== RCS file: /cvsroot/linux-mips/linux/include/linux/threads.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- threads.h 2001/06/22 02:29:32 1.1.1.1 +++ threads.h 2001/11/19 17:25:56 1.2 @@ -9,7 +9,11 @@ */ #ifdef CONFIG_SMP +#ifdef __mips__ +#define NR_CPUS _MIPS_SZLONG +#else #define NR_CPUS 64 /* Max processors that can be running in SMP */ +#endif #else #define NR_CPUS 1 #endif |