topology.h
来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 53 行
H
53 行
/* * linux/include/asm-ia64/topology.h * * Copyright (C) 2002, Erich Focht, NEC * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */#ifndef _ASM_IA64_TOPOLOGY_H#define _ASM_IA64_TOPOLOGY_H#include <asm/acpi.h>#include <asm/numa.h>#include <asm/smp.h>#ifdef CONFIG_NUMA/* * Returns the number of the node containing CPU 'cpu' */#define cpu_to_node(cpu) (int)(cpu_to_node_map[cpu])/* * Returns a bitmask of CPUs on Node 'node'. */#define node_to_cpumask(node) (node_to_cpu_mask[node])/* * Returns the number of the node containing Node 'nid'. * Not implemented here. Multi-level hierarchies detected with * the help of node_distance(). */#define parent_node(nid) (nid)/* * Returns the number of the first CPU on Node 'node'. */#define node_to_first_cpu(node) (__ffs(node_to_cpumask(node)))/* Cross-node load balancing interval. */#define NODE_BALANCE_RATE 10void build_cpu_to_node_map(void);#endif /* CONFIG_NUMA */#include <asm-generic/topology.h>#endif /* _ASM_IA64_TOPOLOGY_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?