Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
smp.c File Reference
#include <linux/types.h>
#include <asm/delay.h>
#include <irq.h>
#include <hwregs/intr_vect.h>
#include <hwregs/intr_vect_defs.h>
#include <asm/tlbflush.h>
#include <asm/mmu_context.h>
#include <hwregs/asm/mmu_defs_asm.h>
#include <hwregs/supp_reg.h>
#include <linux/atomic.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/timex.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/cpumask.h>
#include <linux/interrupt.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  call_data_struct


#define IPI_SCHEDULE   1
#define IPI_CALL   2
#define IPI_FLUSH_TLB   4
#define IPI_BOOT   8
#define FLUSH_ALL   (void*)0xffffffff


 EXPORT_SYMBOL (phys_cpu_present_map)
void cris_mmu_init (void)
void cris_timer_init (void)
void __init smp_prepare_cpus (unsigned int max_cpus)
void __devinit smp_prepare_boot_cpu (void)
void __init smp_cpus_done (unsigned int max_cpus)
void __init smp_callin (void)
void stop_this_cpu (void *dummy)
void smp_send_stop (void)
int setup_profiling_timer (unsigned int multiplier)
int __cpuinit __cpu_up (unsigned int cpu, struct task_struct *tidle)
void smp_send_reschedule (int cpu)
void flush_tlb_common (struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr)
void flush_tlb_all (void)
void flush_tlb_mm (struct mm_struct *mm)
void flush_tlb_page (struct vm_area_struct *vma, unsigned long addr)
int smp_call_function (void(*func)(void *info), void *info, int wait)


spinlock_t cris_atomic_locks []
cpumask_t phys_cpu_present_map = CPU_MASK_NONE
volatile int cpu_now_booting = 0
struct thread_infosmp_init_current_idle_thread
unsigned long cache_decay_ticks = 1

Macro Definition Documentation

#define FLUSH_ALL   (void*)0xffffffff

Definition at line 26 of file smp.c.

#define IPI_BOOT   8

Definition at line 24 of file smp.c.

#define IPI_CALL   2

Definition at line 22 of file smp.c.

#define IPI_FLUSH_TLB   4

Definition at line 23 of file smp.c.

#define IPI_SCHEDULE   1

Definition at line 21 of file smp.c.

Function Documentation

int __cpuinit __cpu_up ( unsigned int  cpu,
struct task_struct tidle 

Definition at line 202 of file smp.c.

void cris_mmu_init ( void  )

Definition at line 30 of file init.c.

void cris_timer_init ( void  )

Definition at line 228 of file time.c.

EXPORT_SYMBOL ( phys_cpu_present_map  )
void flush_tlb_all ( void  )

Definition at line 237 of file smp.c.

void flush_tlb_common ( struct mm_struct mm,
struct vm_area_struct vma,
unsigned long  addr 

Definition at line 222 of file smp.c.

void flush_tlb_mm ( struct mm_struct mm)

Definition at line 243 of file smp.c.

void flush_tlb_page ( struct vm_area_struct vma,
unsigned long  addr 

Definition at line 252 of file smp.c.

int setup_profiling_timer ( unsigned int  multiplier)

Definition at line 189 of file smp.c.

int smp_call_function ( void(*)(void *info func,
void info,
int  wait 

Definition at line 309 of file smp.c.

void __init smp_callin ( void  )

Definition at line 146 of file smp.c.

void __init smp_cpus_done ( unsigned int  max_cpus)

Definition at line 105 of file smp.c.

void __devinit smp_prepare_boot_cpu ( void  )

Definition at line 87 of file smp.c.

void __init smp_prepare_cpus ( unsigned int  max_cpus)

Definition at line 75 of file smp.c.

void smp_send_reschedule ( int  cpu)

Definition at line 208 of file smp.c.

void smp_send_stop ( void  )

Definition at line 184 of file smp.c.

static void stop_this_cpu ( void dummy)

Definition at line 177 of file smp.c.

Variable Documentation

unsigned long cache_decay_ticks = 1

Definition at line 200 of file smp.c.

volatile int cpu_now_booting = 0

Definition at line 38 of file smp.c.

spinlock_t cris_atomic_locks[]
Initial value:
= {
[0 ... LOCK_COUNT - 1] = __SPIN_LOCK_UNLOCKED(cris_atomic_locks)

Definition at line 29 of file smp.c.

cpumask_t phys_cpu_present_map = CPU_MASK_NONE

Definition at line 34 of file smp.c.

struct thread_info* smp_init_current_idle_thread

Definition at line 39 of file smp.c.