Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125663
b: refs/heads/master
c: 278d1ed
h: refs/heads/master
i:
  125661: 76d223a
  125659: 9768913
  125655: 8c841e3
  125647: 22b626f
  125631: 90871cd
v: v3
  • Loading branch information
Rusty Russell committed Dec 29, 2008
1 parent 3b825a4 commit 04237c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 33edcf133ba93ecba2e4b6472e97b689895d805c
refs/heads/master: 278d1ed65e25d80af7c3a112d707b3f70516ddb4
16 changes: 8 additions & 8 deletions trunk/include/linux/threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
*/

/*
* Maximum supported processors that can run under SMP. This value is
* set via configure setting. The maximum is equal to the size of the
* bitmasks used on that platform, i.e. 32 or 64. Setting this smaller
* saves quite a bit of memory.
* Maximum supported processors. Setting this smaller saves quite a
* bit of memory. Use nr_cpu_ids instead of this except for static bitmaps.
*/
#ifdef CONFIG_SMP
#define NR_CPUS CONFIG_NR_CPUS
#else
#define NR_CPUS 1
#ifndef CONFIG_NR_CPUS
/* FIXME: This should be fixed in the arch's Kconfig */
#define CONFIG_NR_CPUS 1
#endif

/* Places which use this should consider cpumask_var_t. */
#define NR_CPUS CONFIG_NR_CPUS

#define MIN_THREADS_LEFT_FOR_ROOT 4

/*
Expand Down

0 comments on commit 04237c0

Please sign in to comment.