Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
topology.c File Reference
#include <linux/workqueue.h>
#include <linux/bootmem.h>
#include <linux/cpuset.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/cpu.h>
#include <linux/smp.h>
#include <linux/mm.h>
#include <asm/sysinfo.h>

Go to the source code of this file.

Data Structures

struct  mask_info
 

Macros

#define KMSG_COMPONENT   "cpu"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define PTF_HORIZONTAL   (0UL)
 
#define PTF_VERTICAL   (1UL)
 
#define PTF_CHECK   (2UL)
 

Functions

int topology_set_cpu_management (int fc)
 
void store_topology (struct sysinfo_15_1_x *info)
 
int arch_update_cpu_topology (void)
 
void topology_schedule_update (void)
 
void topology_expect_change (void)
 
 early_param ("topology", early_parse_topology)
 
void __init s390_init_cpu_topology (void)
 
int topology_cpu_init (struct cpu *cpu)
 
 device_initcall (topology_init)
 

Variables

cpumask_t cpu_core_map [NR_CPUS]
 
unsigned char cpu_core_id [NR_CPUS]
 
unsigned char cpu_socket_id [NR_CPUS]
 
cpumask_t cpu_book_map [NR_CPUS]
 
unsigned char cpu_book_id [NR_CPUS]
 

Macro Definition Documentation

#define KMSG_COMPONENT   "cpu"

Definition at line 6 of file topology.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 7 of file topology.c.

#define PTF_CHECK   (2UL)

Definition at line 24 of file topology.c.

#define PTF_HORIZONTAL   (0UL)

Definition at line 22 of file topology.c.

#define PTF_VERTICAL   (1UL)

Definition at line 23 of file topology.c.

Function Documentation

int arch_update_cpu_topology ( void  )

Definition at line 256 of file topology.c.

device_initcall ( topology_init  )
early_param ( "topology"  ,
early_parse_topology   
)
void __init s390_init_cpu_topology ( void  )

Definition at line 344 of file topology.c.

void store_topology ( struct sysinfo_15_1_x info)

Definition at line 248 of file topology.c.

int topology_cpu_init ( struct cpu cpu)

Definition at line 444 of file topology.c.

void topology_expect_change ( void  )

Definition at line 307 of file topology.c.

void topology_schedule_update ( void  )

Definition at line 282 of file topology.c.

int topology_set_cpu_management ( int  fc)

Definition at line 218 of file topology.c.

Variable Documentation

unsigned char cpu_book_id[NR_CPUS]

Definition at line 47 of file topology.c.

cpumask_t cpu_book_map[NR_CPUS]

Definition at line 46 of file topology.c.

unsigned char cpu_core_id[NR_CPUS]

Definition at line 42 of file topology.c.

cpumask_t cpu_core_map
Initial value:
=
{ [0 ... NR_CPUS-1] = CPU_MASK_NONE }

Definition at line 41 of file topology.c.

unsigned char cpu_socket_id[NR_CPUS]

Definition at line 43 of file topology.c.