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/module.h>
#include <linux/cpu.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/irq.h>
#include <linux/bootmem.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>

Go to the source code of this file.

Macros

#define DEBUG_SMP
 
#define Dprintk(x...)   printk(x)
 
#define physid_to_cpu(physid)   physid_2_cpu[physid]
 
#define PRINT_CLOCK(name, value)
 

Functions

 EXPORT_SYMBOL (cpu_callout_map)
 
 DEFINE_PER_CPU (int, prof_multiplier)
 
 DEFINE_PER_CPU (int, prof_old_multiplier)
 
 DEFINE_PER_CPU (int, prof_counter)
 
int start_secondary (void *)
 
int setup_profiling_timer (unsigned int)
 
void __devinit smp_prepare_boot_cpu (void)
 
void __init smp_prepare_cpus (unsigned int max_cpus)
 
int __cpuinit __cpu_up (unsigned int cpu_id, struct task_struct *tidle)
 
void __init smp_cpus_done (unsigned int max_cpus)
 

Variables

cpumask_t cpu_initialized
 
physid_mask_t phys_cpu_present_map
 
cpumask_t cpu_bootout_map
 
cpumask_t cpu_bootin_map
 
cpumask_t cpu_callout_map
 
struct cpuinfo_m32r cpu_data[NR_CPUS__cacheline_aligned
 
struct {
   void *   spi
 
   unsigned short   ss
 
stack_start
 
volatile int cpu_2_physid [NR_CPUS]
 
spinlock_t ipi_lock [NR_IPIS]
 

Macro Definition Documentation

#define DEBUG_SMP

Definition at line 57 of file smpboot.c.

#define Dprintk (   x...)    printk(x)

Definition at line 59 of file smpboot.c.

#define physid_to_cpu (   physid)    physid_2_cpu[physid]

Definition at line 95 of file smpboot.c.

#define PRINT_CLOCK (   name,
  value 
)
Value:
printk(name " clock %d.%02dMHz", \
((value) / 1000000), ((value) % 1000000) / 10000)

Function Documentation

int __cpuinit __cpu_up ( unsigned int  cpu_id,
struct task_struct tidle 
)

Definition at line 346 of file smpboot.c.

DEFINE_PER_CPU ( int  ,
prof_multiplier   
)
DEFINE_PER_CPU ( int  ,
prof_old_multiplier   
)
DEFINE_PER_CPU ( int  ,
prof_counter   
)
EXPORT_SYMBOL ( cpu_callout_map  )
int setup_profiling_timer ( unsigned int  multiplier)
void __init smp_cpus_done ( unsigned int  max_cpus)

Definition at line 366 of file smpboot.c.

void __devinit smp_prepare_boot_cpu ( void  )

Definition at line 130 of file smpboot.c.

void __init smp_prepare_cpus ( unsigned int  max_cpus)

Definition at line 163 of file smpboot.c.

int start_secondary ( void unused)

Variable Documentation

struct cpuinfo_m32r cpu_data [NR_CPUS] __cacheline_aligned

Definition at line 83 of file smpboot.c.

volatile int cpu_2_physid[NR_CPUS]

Definition at line 98 of file smpboot.c.

cpumask_t cpu_bootin_map

Definition at line 77 of file smpboot.c.

cpumask_t cpu_bootout_map

Definition at line 76 of file smpboot.c.

cpumask_t cpu_callout_map

Definition at line 79 of file smpboot.c.

cpumask_t cpu_initialized
spinlock_t ipi_lock[NR_IPIS]

Definition at line 104 of file smpboot.c.

physid_mask_t phys_cpu_present_map

Definition at line 74 of file smpboot.c.

void* spi

Definition at line 89 of file smpboot.c.

Definition at line 90 of file smpboot.c.

struct { ... } stack_start

Definition at line 168 of file misc.c.