Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
smp.h File Reference
#include <linux/cpumask.h>
#include <linux/init.h>
#include <asm/percpu.h>
#include <asm/thread_info.h>
#include <asm/cpumask.h>
#include <asm/cpufeature.h>

Go to the source code of this file.

Data Structures

struct  smp_ops
 

Macros

#define wbinvd_on_cpu(cpu)   wbinvd()
 
#define hard_smp_processor_id()   0
 
#define nmi_selftest()   do { } while (0)
 

Functions

 DECLARE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_sibling_map)
 
 DECLARE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_core_map)
 
 DECLARE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_llc_shared_map)
 
 DECLARE_PER_CPU_READ_MOSTLY (u16, cpu_llc_id)
 
 DECLARE_PER_CPU_READ_MOSTLY (int, cpu_number)
 
 DECLARE_EARLY_PER_CPU_READ_MOSTLY (u16, x86_cpu_to_apicid)
 
 DECLARE_EARLY_PER_CPU_READ_MOSTLY (u16, x86_bios_cpu_apicid)
 
void set_cpu_sibling_map (int cpu)
 

Variables

int smp_num_siblings
 
unsigned int num_processors
 
unsigned long stack_start
 
unsigned disabled_cpus __cpuinitdata
 

Macro Definition Documentation

#define hard_smp_processor_id (   void)    0

Definition at line 221 of file smp.h.

#define nmi_selftest (   void)    do { } while (0)

Definition at line 229 of file smp.h.

#define wbinvd_on_cpu (   cpu)    wbinvd()

Definition at line 173 of file smp.h.

Function Documentation

DECLARE_EARLY_PER_CPU_READ_MOSTLY ( u16  ,
x86_cpu_to_apicid   
)
DECLARE_EARLY_PER_CPU_READ_MOSTLY ( u16  ,
x86_bios_cpu_apicid   
)
DECLARE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_sibling_map   
)
DECLARE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_core_map   
)
DECLARE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_llc_shared_map   
)
DECLARE_PER_CPU_READ_MOSTLY ( u16  ,
cpu_llc_id   
)
DECLARE_PER_CPU_READ_MOSTLY ( int  ,
cpu_number   
)
void set_cpu_sibling_map ( int  cpu)

Definition at line 356 of file smpboot.c.

Variable Documentation

unsigned disabled_cpus __cpuinitdata

Definition at line 39 of file smp_32.c.

u64 num_processors

Definition at line 128 of file processor.h.

int smp_num_siblings

Definition at line 124 of file smpboot.c.

unsigned long stack_start

Definition at line 168 of file misc.c.