Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
smpboot.c File Reference
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/percpu.h>
#include <linux/bootmem.h>
#include <linux/err.h>
#include <linux/nmi.h>
#include <linux/tboot.h>
#include <linux/stackprotector.h>
#include <linux/gfp.h>
#include <linux/cpuidle.h>
#include <asm/acpi.h>
#include <asm/desc.h>
#include <asm/nmi.h>
#include <asm/irq.h>
#include <asm/idle.h>
#include <asm/realmode.h>
#include <asm/cpu.h>
#include <asm/numa.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>
#include <asm/mtrr.h>
#include <asm/mwait.h>
#include <asm/apic.h>
#include <asm/io_apic.h>
#include <asm/i387.h>
#include <asm/fpu-internal.h>
#include <asm/setup.h>
#include <asm/uv/uv.h>
#include <linux/mc146818rtc.h>
#include <asm/smpboot_hooks.h>
#include <asm/i8259.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define link_mask(_m, c1, c2)
 

Functions

 DEFINE_PER_CPU (int, cpu_state)
 
 EXPORT_SYMBOL (smp_num_siblings)
 
 DEFINE_PER_CPU_READ_MOSTLY (u16, cpu_llc_id)
 
 DEFINE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_sibling_map)
 
 EXPORT_PER_CPU_SYMBOL (cpu_sibling_map)
 
 DEFINE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_core_map)
 
 EXPORT_PER_CPU_SYMBOL (cpu_core_map)
 
 DEFINE_PER_CPU_READ_MOSTLY (cpumask_var_t, cpu_llc_shared_map)
 
 DEFINE_PER_CPU_SHARED_ALIGNED (struct cpuinfo_x86, cpu_info)
 
 EXPORT_PER_CPU_SYMBOL (cpu_info)
 
void __cpuinit smp_store_cpu_info (int id)
 
void __cpuinit set_cpu_sibling_map (int cpu)
 
struct cpumaskcpu_coregroup_mask (int cpu)
 
void __inquire_remote_apic (int apicid)
 
int __cpuinit wakeup_secondary_cpu_via_nmi (int logical_apicid, unsigned long start_eip)
 
int __cpuinit native_cpu_up (unsigned int cpu, struct task_struct *tidle)
 
void arch_disable_smp_support (void)
 
void __init native_smp_prepare_cpus (unsigned int max_cpus)
 
void arch_enable_nonboot_cpus_begin (void)
 
void arch_enable_nonboot_cpus_end (void)
 
void __init native_smp_prepare_boot_cpu (void)
 
void __init native_smp_cpus_done (unsigned int max_cpus)
 
 early_param ("possible_cpus", _setup_possible_cpus)
 
__init void prefill_possible_map (void)
 
int native_cpu_disable (void)
 
void native_cpu_die (unsigned int cpu)
 
void native_play_dead (void)
 

Variables

int smp_num_siblings = 1
 
atomic_t init_deasserted
 

Macro Definition Documentation

#define link_mask (   _m,
  c1,
  c2 
)
Value:
do { \
cpumask_set_cpu((c1), cpu_##_m##_mask(c2)); \
cpumask_set_cpu((c2), cpu_##_m##_mask(c1)); \
} while (0)

Definition at line 310 of file smpboot.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 42 of file smpboot.c.

Function Documentation

void __inquire_remote_apic ( int  apicid)

Definition at line 442 of file smpboot.c.

void arch_disable_smp_support ( void  )

arch_disable_smp_support() - disables SMP support for x86 at runtime

Definition at line 851 of file smpboot.c.

void arch_enable_nonboot_cpus_begin ( void  )

Definition at line 1062 of file smpboot.c.

void arch_enable_nonboot_cpus_end ( void  )

Definition at line 1067 of file smpboot.c.

struct cpumask* cpu_coregroup_mask ( int  cpu)
read

Definition at line 418 of file smpboot.c.

DEFINE_PER_CPU ( int  ,
cpu_state   
)
DEFINE_PER_CPU_READ_MOSTLY ( u16  ,
cpu_llc_id   
)
DEFINE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_sibling_map   
)
DEFINE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_core_map   
)
DEFINE_PER_CPU_READ_MOSTLY ( cpumask_var_t  ,
cpu_llc_shared_map   
)
DEFINE_PER_CPU_SHARED_ALIGNED ( struct cpuinfo_x86  ,
cpu_info   
)
early_param ( "possible_cpus"  ,
_setup_possible_cpus   
)
EXPORT_PER_CPU_SYMBOL ( cpu_sibling_map  )
EXPORT_PER_CPU_SYMBOL ( cpu_core_map  )
EXPORT_PER_CPU_SYMBOL ( cpu_info  )
EXPORT_SYMBOL ( smp_num_siblings  )
void native_cpu_die ( unsigned int  cpu)

Definition at line 1366 of file smpboot.c.

int native_cpu_disable ( void  )

Definition at line 1361 of file smpboot.c.

int __cpuinit native_cpu_up ( unsigned int  cpu,
struct task_struct tidle 
)

Definition at line 790 of file smpboot.c.

void native_play_dead ( void  )

Definition at line 1372 of file smpboot.c.

void __init native_smp_cpus_done ( unsigned int  max_cpus)

Definition at line 1084 of file smpboot.c.

void __init native_smp_prepare_boot_cpu ( void  )

Definition at line 1075 of file smpboot.c.

void __init native_smp_prepare_cpus ( unsigned int  max_cpus)

Definition at line 988 of file smpboot.c.

__init void prefill_possible_map ( void  )

Definition at line 1122 of file smpboot.c.

void __cpuinit set_cpu_sibling_map ( int  cpu)

Definition at line 356 of file smpboot.c.

void __cpuinit smp_store_cpu_info ( int  id)

Definition at line 289 of file smpboot.c.

int __cpuinit wakeup_secondary_cpu_via_nmi ( int  logical_apicid,
unsigned long  start_eip 
)

Definition at line 486 of file smpboot.c.

Variable Documentation

atomic_t init_deasserted

Definition at line 127 of file smpboot.c.

int smp_num_siblings = 1

Definition at line 107 of file smpboot.c.