Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
smp.h File Reference
#include <linux/bitops.h>
#include <linux/linkage.h>
#include <linux/smp.h>
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <linux/atomic.h>
#include <asm/smp-ops.h>

Go to the source code of this file.

Macros

#define raw_smp_processor_id()   (current_thread_info()->cpu)
 
#define cpu_number_map(cpu)   __cpu_number_map[cpu]
 
#define cpu_logical_map(cpu)   __cpu_logical_map[cpu]
 
#define NO_PROC_ID   (-1)
 
#define SMP_RESCHEDULE_YOURSELF   0x1 /* XXX braindead */
 
#define SMP_CALL_FUNCTION   0x2
 
#define SMP_ICACHE_FLUSH   0x4
 

Functions

void asmlinkage smp_bootstrap (void)
 
asmlinkage void smp_call_function_interrupt (void)
 

Variables

int smp_num_siblings
 
cpumask_t cpu_sibling_map []
 
int __cpu_number_map [NR_CPUS]
 
int __cpu_logical_map [NR_CPUS]
 
volatile cpumask_t cpu_callin_map
 

Macro Definition Documentation

#define cpu_logical_map (   cpu)    __cpu_logical_map[cpu]

Definition at line 35 of file smp.h.

#define cpu_number_map (   cpu)    __cpu_number_map[cpu]

Definition at line 31 of file smp.h.

#define NO_PROC_ID   (-1)

Definition at line 37 of file smp.h.

#define raw_smp_processor_id ( )    (current_thread_info()->cpu)

Definition at line 26 of file smp.h.

#define SMP_CALL_FUNCTION   0x2

Definition at line 40 of file smp.h.

#define SMP_ICACHE_FLUSH   0x4

Definition at line 42 of file smp.h.

#define SMP_RESCHEDULE_YOURSELF   0x1 /* XXX braindead */

Definition at line 39 of file smp.h.

Function Documentation

void asmlinkage smp_bootstrap ( void  )
asmlinkage void smp_call_function_interrupt ( void  )

Definition at line 565 of file smp.c.

Variable Documentation

int __cpu_logical_map[NR_CPUS]

Definition at line 424 of file setup.c.

int __cpu_number_map[NR_CPUS]

Definition at line 51 of file smp.c.

volatile cpumask_t cpu_callin_map

Definition at line 49 of file smp.c.

cpumask_t cpu_sibling_map[]
int smp_num_siblings

Definition at line 124 of file smpboot.c.