Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cpu.c File Reference
#include <linux/proc_fs.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/notifier.h>
#include <linux/sched.h>
#include <linux/unistd.h>
#include <linux/cpu.h>
#include <linux/oom.h>
#include <linux/rcupdate.h>
#include <linux/export.h>
#include <linux/bug.h>
#include <linux/kthread.h>
#include <linux/stop_machine.h>
#include <linux/mutex.h>
#include <linux/gfp.h>
#include <linux/suspend.h>
#include "smpboot.h"

Go to the source code of this file.


#define MASK_DECLARE_1(x)   [x+1][0] = (1UL << (x))
#define MASK_DECLARE_2(x)   MASK_DECLARE_1(x), MASK_DECLARE_1(x+1)
#define MASK_DECLARE_4(x)   MASK_DECLARE_2(x), MASK_DECLARE_2(x+2)
#define MASK_DECLARE_8(x)   MASK_DECLARE_4(x), MASK_DECLARE_4(x+4)


 EXPORT_SYMBOL_GPL (cpu_bit_bitmap)
const DECLARE_BITMAP (cpu_all_bits, NR_CPUS)
 EXPORT_SYMBOL (cpu_all_bits)
void set_cpu_present (unsigned int cpu, bool present)
void set_cpu_online (unsigned int cpu, bool online)
void set_cpu_active (unsigned int cpu, bool active)
void init_cpu_present (const struct cpumask *src)
void init_cpu_possible (const struct cpumask *src)
void init_cpu_online (const struct cpumask *src)


const unsigned long cpu_bit_bitmap [BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)]

Macro Definition Documentation

#define MASK_DECLARE_1 (   x)    [x+1][0] = (1UL << (x))

Definition at line 641 of file cpu.c.

#define MASK_DECLARE_2 (   x)    MASK_DECLARE_1(x), MASK_DECLARE_1(x+1)

Definition at line 642 of file cpu.c.

#define MASK_DECLARE_4 (   x)    MASK_DECLARE_2(x), MASK_DECLARE_2(x+2)

Definition at line 643 of file cpu.c.

#define MASK_DECLARE_8 (   x)    MASK_DECLARE_4(x), MASK_DECLARE_4(x+4)

Definition at line 644 of file cpu.c.

Function Documentation

const DECLARE_BITMAP ( cpu_all_bits  ,
EXPORT_SYMBOL ( cpu_all_bits  )
EXPORT_SYMBOL_GPL ( cpu_bit_bitmap  )
void init_cpu_online ( const struct cpumask src)

Definition at line 723 of file cpu.c.

void init_cpu_possible ( const struct cpumask src)

Definition at line 718 of file cpu.c.

void init_cpu_present ( const struct cpumask src)

Definition at line 713 of file cpu.c.

void set_cpu_active ( unsigned int  cpu,
bool  active 

Definition at line 705 of file cpu.c.

void set_cpu_online ( unsigned int  cpu,
bool  online 

Definition at line 697 of file cpu.c.

void set_cpu_present ( unsigned int  cpu,
bool  present 

Definition at line 689 of file cpu.c.

Variable Documentation

const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)]
Initial value:

Definition at line 646 of file cpu.c.