Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
topology.h File Reference
#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)
 

Macro Definition Documentation

#define for_each_node_with_cpus (   node)
Value:

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
Value:
(struct sched_domain) { \
.min_interval = 1, \
.max_interval = 4, \
.busy_factor = 64, \
.imbalance_pct = 125, \
.cache_nice_tries = 1, \
.busy_idx = 2, \
.idle_idx = 1, \
.newidle_idx = 0, \
.wake_idx = 0, \
.forkexec_idx = 0, \
\
.flags = 1*SD_LOAD_BALANCE \
| 1*SD_BALANCE_NEWIDLE \
| 1*SD_BALANCE_EXEC \
| 1*SD_BALANCE_FORK \
| 0*SD_BALANCE_WAKE \
| 1*SD_WAKE_AFFINE \
| 0*SD_SHARE_CPUPOWER \
| 0*SD_SHARE_PKG_RESOURCES \
| 0*SD_SERIALIZE \
| 1*SD_PREFER_SIBLING \
, \
.last_balance = jiffies, \
.balance_interval = 1, \
}

Definition at line 144 of file topology.h.

#define topology_core_cpumask (   cpu)    cpumask_of(cpu)

Definition at line 289 of file topology.h.

#define topology_core_id (   cpu)    ((void)(cpu), 0)

Definition at line 283 of file topology.h.

#define topology_physical_package_id (   cpu)    ((void)(cpu), -1)

Definition at line 280 of file topology.h.

#define topology_thread_cpumask (   cpu)    cpumask_of(cpu)

Definition at line 286 of file topology.h.

Function Documentation

int arch_update_cpu_topology ( void  )

Definition at line 256 of file topology.c.