diff options
| author | Ingo Molnar <mingo@elte.hu> | 2005-01-07 21:54:15 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-01-07 21:54:15 -0800 |
| commit | c919160eb480660edf9719ee3aa443c1fd841be0 (patch) | |
| tree | 6058f2356134f7df99ef736bf1818af25876aeef /include | |
| parent | 147266ed45211650a07505993e8ff9bc66b9cc9e (diff) | |
[PATCH] Fix smp_processor_id() warning in numa_node_id()
The patch below fixes smp_processor_id() warnings that are triggered by
numa_node_id().
All uses of numa_node_id() in mm/mempolicy.c seem to use it as a 'hint'
only, not as a correctness number. Once a node is established, it's used
in a preemption-safe way. So the simple fix is to disable the checking for
numa_node_id(). But additional review would be more than welcome, because
this patch turns off the preemption-checking of numa_node_id() permanently.
Tested on amd64.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mmzone.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 91aba666cf48..b2920dd331ec 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -375,7 +375,7 @@ int lower_zone_protection_sysctl_handler(struct ctl_table *, int, struct file *, #include <linux/topology.h> /* Returns the number of the current Node. */ -#define numa_node_id() (cpu_to_node(smp_processor_id())) +#define numa_node_id() (cpu_to_node(_smp_processor_id())) #ifndef CONFIG_DISCONTIGMEM |
