Contributors: 16
Author Tokens Token Proportion Commits Commit Proportion
Tejun Heo 117 46.25% 6 20.69%
Mike Travis 51 20.16% 2 6.90%
Jonathan Cameron 16 6.32% 1 3.45%
Ravikiran G. Thirumalai 13 5.14% 2 6.90%
Thomas Gleixner 13 5.14% 2 6.90%
Andi Kleen 10 3.95% 4 13.79%
David Rientjes 6 2.37% 2 6.90%
Mike Rapoport 5 1.98% 1 3.45%
Rusty Russell 5 1.98% 1 3.45%
Glauber de Oliveira Costa 4 1.58% 1 3.45%
Matthew Dobson 3 1.19% 1 3.45%
Andrew Morton 3 1.19% 1 3.45%
Andy Grover 3 1.19% 2 6.90%
Jan Beulich 2 0.79% 1 3.45%
David Howells 1 0.40% 1 3.45%
Greg Kroah-Hartman 1 0.40% 1 3.45%
Total 253 29

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_NUMA_H
#define _ASM_X86_NUMA_H

#include <linux/nodemask.h>
#include <linux/errno.h>

#include <asm/topology.h>
#include <asm/apicdef.h>

#ifdef CONFIG_NUMA

extern int numa_off;

/*
 * __apicid_to_node[] stores the raw mapping between physical apicid and
 * node and is used to initialize cpu_to_node mapping.
 *
 * The mapping may be overridden by apic->numa_cpu_node() on 32bit and thus
 * should be accessed by the accessors - set_apicid_to_node() and
 * numa_cpu_node().
 */
extern s16 __apicid_to_node[MAX_LOCAL_APIC];
extern nodemask_t numa_nodes_parsed __initdata;

static inline void set_apicid_to_node(int apicid, s16 node)
{
	__apicid_to_node[apicid] = node;
}

extern int numa_cpu_node(int cpu);

#else	/* CONFIG_NUMA */
static inline void set_apicid_to_node(int apicid, s16 node)
{
}

static inline int numa_cpu_node(int cpu)
{
	return NUMA_NO_NODE;
}
#endif	/* CONFIG_NUMA */

#ifdef CONFIG_X86_32
# include <asm/numa_32.h>
#endif

#ifdef CONFIG_NUMA
extern void numa_set_node(int cpu, int node);
extern void numa_clear_node(int cpu);
extern void __init init_cpu_to_node(void);
extern void numa_add_cpu(unsigned int cpu);
extern void numa_remove_cpu(unsigned int cpu);
extern void init_gi_nodes(void);
#else	/* CONFIG_NUMA */
static inline void numa_set_node(int cpu, int node)	{ }
static inline void numa_clear_node(int cpu)		{ }
static inline void init_cpu_to_node(void)		{ }
static inline void numa_add_cpu(unsigned int cpu)	{ }
static inline void numa_remove_cpu(unsigned int cpu)	{ }
static inline void init_gi_nodes(void)			{ }
#endif	/* CONFIG_NUMA */

#ifdef CONFIG_DEBUG_PER_CPU_MAPS
void debug_cpumask_set_cpu(unsigned int cpu, int node, bool enable);
#endif

#endif	/* _ASM_X86_NUMA_H */