diff options
Diffstat (limited to 'include/asm-generic/topology.h')
| -rw-r--r-- | include/asm-generic/topology.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 510df36dd5d4..fc824e2828f3 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | * | 5 | * |
| 6 | * Copyright (C) 2002, IBM Corp. | 6 | * Copyright (C) 2002, IBM Corp. |
| 7 | * | 7 | * |
| 8 | * All rights reserved. | 8 | * All rights reserved. |
| 9 | * | 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by | 11 | * it under the terms of the GNU General Public License as published by |
| @@ -34,6 +34,16 @@ | |||
| 34 | #ifndef cpu_to_node | 34 | #ifndef cpu_to_node |
| 35 | #define cpu_to_node(cpu) ((void)(cpu),0) | 35 | #define cpu_to_node(cpu) ((void)(cpu),0) |
| 36 | #endif | 36 | #endif |
| 37 | #ifndef set_numa_node | ||
| 38 | #define set_numa_node(node) | ||
| 39 | #endif | ||
| 40 | #ifndef set_cpu_numa_node | ||
| 41 | #define set_cpu_numa_node(cpu, node) | ||
| 42 | #endif | ||
| 43 | #ifndef cpu_to_mem | ||
| 44 | #define cpu_to_mem(cpu) ((void)(cpu),0) | ||
| 45 | #endif | ||
| 46 | |||
| 37 | #ifndef parent_node | 47 | #ifndef parent_node |
| 38 | #define parent_node(node) ((void)(node),0) | 48 | #define parent_node(node) ((void)(node),0) |
| 39 | #endif | 49 | #endif |
| @@ -52,4 +62,15 @@ | |||
| 52 | 62 | ||
| 53 | #endif /* CONFIG_NUMA */ | 63 | #endif /* CONFIG_NUMA */ |
| 54 | 64 | ||
| 65 | #if !defined(CONFIG_NUMA) || !defined(CONFIG_HAVE_MEMORYLESS_NODES) | ||
| 66 | |||
| 67 | #ifndef set_numa_mem | ||
| 68 | #define set_numa_mem(node) | ||
| 69 | #endif | ||
| 70 | #ifndef set_cpu_numa_mem | ||
| 71 | #define set_cpu_numa_mem(cpu, node) | ||
| 72 | #endif | ||
| 73 | |||
| 74 | #endif /* !CONFIG_NUMA || !CONFIG_HAVE_MEMORYLESS_NODES */ | ||
| 75 | |||
| 55 | #endif /* _ASM_GENERIC_TOPOLOGY_H */ | 76 | #endif /* _ASM_GENERIC_TOPOLOGY_H */ |
