Commit 51a169c1 authored by Richard Henderson's avatar Richard Henderson Committed by Richard Henderson

[TRIVIAL] Use asm-generic/topology.h.

From colpatch@us.ibm.com
parent b04b564b
#ifndef _ASM_ALPHA_TOPOLOGY_H #ifndef _ASM_ALPHA_TOPOLOGY_H
#define _ASM_ALPHA_TOPOLOGY_H #define _ASM_ALPHA_TOPOLOGY_H
#ifdef CONFIG_NUMA #if defined(CONFIG_NUMA) && defined(CONFIG_ALPHA_WILDFIRE)
#ifdef CONFIG_ALPHA_WILDFIRE
/* With wildfire assume 4 CPUs per node */ /* With wildfire assume 4 CPUs per node */
#define __cpu_to_node(cpu) ((cpu) >> 2) #define __cpu_to_node(cpu) ((cpu) >> 2)
#endif /* CONFIG_ALPHA_WILDFIRE */
#endif /* CONFIG_NUMA */
#if !defined(CONFIG_NUMA) || !defined(CONFIG_ALPHA_WILDFIRE) #else /* !CONFIG_NUMA || !CONFIG_ALPHA_WILDFIRE */
#define __cpu_to_node(cpu) (0)
#define __memblk_to_node(memblk) (0) #include <asm-generic/topology.h>
#define __parent_node(nid) (0)
#define __node_to_first_cpu(node) (0) #endif /* CONFIG_NUMA && CONFIG_ALPHA_WILDFIRE */
#define __node_to_cpu_mask(node) (cpu_online_map)
#define __node_to_memblk(node) (0)
#endif /* !CONFIG_NUMA || !CONFIG_ALPHA_WILDFIRE */
#endif /* _ASM_ALPHA_TOPOLOGY_H */ #endif /* _ASM_ALPHA_TOPOLOGY_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment