mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
x86: fixup numa 64 namespace
Using a variable name, which is the same as a macro name is not really smart. Change the variable names and fixup all users. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
e3cfe529dd
commit
7462894a7c
3 changed files with 13 additions and 13 deletions
|
|
@ -32,7 +32,7 @@ extern void __init init_cpu_to_node(void);
|
|||
|
||||
static inline void clear_node_cpumask(int cpu)
|
||||
{
|
||||
clear_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]);
|
||||
clear_bit(cpu, &node_to_cpumask_map[cpu_to_node(cpu)]);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
#include <asm/mpspec.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
extern unsigned char cpu_to_node[];
|
||||
extern cpumask_t node_to_cpumask[];
|
||||
extern int cpu_to_node_map[];
|
||||
extern cpumask_t node_to_cpumask_map[];
|
||||
|
||||
#ifdef CONFIG_ACPI_NUMA
|
||||
extern int __node_distance(int, int);
|
||||
|
|
@ -16,10 +16,10 @@ extern int __node_distance(int, int);
|
|||
/* #else fallback version */
|
||||
#endif
|
||||
|
||||
#define cpu_to_node(cpu) (cpu_to_node[cpu])
|
||||
#define cpu_to_node(cpu) (cpu_to_node_map[cpu])
|
||||
#define parent_node(node) (node)
|
||||
#define node_to_first_cpu(node) (first_cpu(node_to_cpumask[node]))
|
||||
#define node_to_cpumask(node) (node_to_cpumask[node])
|
||||
#define node_to_first_cpu(node) (first_cpu(node_to_cpumask_map[node]))
|
||||
#define node_to_cpumask(node) (node_to_cpumask_map[node])
|
||||
#define pcibus_to_node(bus) ((struct pci_sysdata *)((bus)->sysdata))->node
|
||||
#define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue