Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
topology.c File Reference
#include <linux/cpu.h>
#include <linux/cpumask.h>
#include <linux/init.h>
#include <linux/percpu.h>
#include <linux/node.h>
#include <linux/nodemask.h>
#include <linux/of.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <asm/cputype.h>
#include <asm/topology.h>

Go to the source code of this file.


#define MPIDR_SMP_BITMASK   (0x3 << 30)
#define MPIDR_SMP_VALUE   (0x2 << 30)
#define MPIDR_MT_BITMASK   (0x1 << 24)
#define MPIDR_LEVEL0_MASK   0x3
#define MPIDR_LEVEL0_SHIFT   0
#define MPIDR_LEVEL1_MASK   0xF
#define MPIDR_LEVEL1_SHIFT   8
#define MPIDR_LEVEL2_MASK   0xFF
#define MPIDR_LEVEL2_SHIFT   16


unsigned long arch_scale_freq_power (struct sched_domain *sd, int cpu)
struct cpumaskcpu_coregroup_mask (int cpu)
void update_siblings_masks (unsigned int cpuid)
void store_cpu_topology (unsigned int cpuid)
void __init init_cpu_topology (void)


struct cputopo_arm cpu_topology [NR_CPUS]

Macro Definition Documentation


Definition at line 213 of file topology.c.

#define MPIDR_LEVEL0_MASK   0x3

Definition at line 215 of file topology.c.

#define MPIDR_LEVEL0_SHIFT   0

Definition at line 216 of file topology.c.

#define MPIDR_LEVEL1_MASK   0xF

Definition at line 218 of file topology.c.

#define MPIDR_LEVEL1_SHIFT   8

Definition at line 219 of file topology.c.

#define MPIDR_LEVEL2_MASK   0xFF

Definition at line 221 of file topology.c.

#define MPIDR_LEVEL2_SHIFT   16

Definition at line 222 of file topology.c.

#define MPIDR_MT_BITMASK   (0x1 << 24)

Definition at line 207 of file topology.c.

#define MPIDR_SMP_BITMASK   (0x3 << 30)

Definition at line 204 of file topology.c.

#define MPIDR_SMP_VALUE   (0x2 << 30)

Definition at line 205 of file topology.c.

Function Documentation

unsigned long arch_scale_freq_power ( struct sched_domain *  sd,
int  cpu 

Definition at line 44 of file topology.c.

struct cpumask* cpu_coregroup_mask ( int  cpu)

Definition at line 229 of file topology.c.

void __init init_cpu_topology ( void  )

Definition at line 324 of file topology.c.

void store_cpu_topology ( unsigned int  cpuid)

Definition at line 265 of file topology.c.

void update_siblings_masks ( unsigned int  cpuid)

Definition at line 234 of file topology.c.

Variable Documentation

struct cputopo_arm cpu_topology[NR_CPUS]

Definition at line 227 of file topology.c.