|
Linux Kernel
3.7.1
|
#include <linux/cpumask.h>#include <linux/bitops.h>#include <linux/mmzone.h>#include <linux/smp.h>#include <linux/percpu.h>#include <asm/topology.h>Go to the source code of this file.
Macros | |
| #define | node_has_online_mem(nid) (1) |
| #define | nr_cpus_node(node) cpumask_weight(cpumask_of_node(node)) |
| #define | for_each_node_with_cpus(node) |
| #define | LOCAL_DISTANCE 10 |
| #define | REMOTE_DISTANCE 20 |
| #define | node_distance(from, to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE) |
| #define | RECLAIM_DISTANCE 30 |
| #define | PENALTY_FOR_NODE_WITH_CPUS (1) |
| #define | SD_CPU_INIT |
| #define | topology_physical_package_id(cpu) ((void)(cpu), -1) |
| #define | topology_core_id(cpu) ((void)(cpu), 0) |
| #define | topology_thread_cpumask(cpu) cpumask_of(cpu) |
| #define | topology_core_cpumask(cpu) cpumask_of(cpu) |
Functions | |
| int | arch_update_cpu_topology (void) |
| #define for_each_node_with_cpus | ( | node | ) |
Definition at line 45 of file topology.h.
| #define LOCAL_DISTANCE 10 |
Definition at line 52 of file topology.h.
| #define node_distance | ( | from, | |
| to | |||
| ) | ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE) |
Definition at line 55 of file topology.h.
| #define node_has_online_mem | ( | nid | ) | (1) |
Definition at line 38 of file topology.h.
| #define nr_cpus_node | ( | node | ) | cpumask_weight(cpumask_of_node(node)) |
Definition at line 42 of file topology.h.
| #define PENALTY_FOR_NODE_WITH_CPUS (1) |
Definition at line 66 of file topology.h.
| #define RECLAIM_DISTANCE 30 |
Definition at line 63 of file topology.h.
| #define REMOTE_DISTANCE 20 |
Definition at line 53 of file topology.h.
| #define SD_CPU_INIT |
Definition at line 144 of file topology.h.
| #define topology_core_cpumask | ( | cpu | ) | cpumask_of(cpu) |
Definition at line 289 of file topology.h.
Definition at line 283 of file topology.h.
Definition at line 280 of file topology.h.
| #define topology_thread_cpumask | ( | cpu | ) | cpumask_of(cpu) |
Definition at line 286 of file topology.h.
Definition at line 256 of file topology.c.
1.8.2