Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
intel_cacheinfo.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/compiler.h>
#include <linux/cpu.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <asm/processor.h>
#include <linux/smp.h>
#include <asm/amd_nb.h>
#include <asm/smp.h>

Go to the source code of this file.

Data Structures

struct  _cache_table
 
union  _cpuid4_leaf_eax
 
union  _cpuid4_leaf_ebx
 
union  _cpuid4_leaf_ecx
 
struct  _cpuid4_info_regs
 
struct  _cpuid4_info
 
union  l1_cache
 
union  l2_cache
 
union  l3_cache
 
struct  _cache_attr
 

Macros

#define LVL_1_INST   1
 
#define LVL_1_DATA   2
 
#define LVL_2   3
 
#define LVL_3   4
 
#define LVL_TRACE   5
 
#define MB(x)   ((x) * 1024)
 
#define amd_init_l3_cache(x, y)
 

Enumerations

enum  _cache_type { CACHE_TYPE_NULL = 0, CACHE_TYPE_DATA = 1, CACHE_TYPE_INST = 2, CACHE_TYPE_UNIFIED = 3 }
 

Functions

unsigned int __cpuinit init_intel_cacheinfo (struct cpuinfo_x86 *c)
 

Variables

unsigned short num_cache_leaves
 

Macro Definition Documentation

#define amd_init_l3_cache (   x,
  y 
)

Definition at line 528 of file intel_cacheinfo.c.

#define LVL_1_DATA   2

Definition at line 24 of file intel_cacheinfo.c.

#define LVL_1_INST   1

Definition at line 23 of file intel_cacheinfo.c.

#define LVL_2   3

Definition at line 25 of file intel_cacheinfo.c.

#define LVL_3   4

Definition at line 26 of file intel_cacheinfo.c.

#define LVL_TRACE   5

Definition at line 27 of file intel_cacheinfo.c.

#define MB (   x)    ((x) * 1024)

Definition at line 35 of file intel_cacheinfo.c.

Enumeration Type Documentation

Enumerator:
CACHE_TYPE_NULL 
CACHE_TYPE_DATA 
CACHE_TYPE_INST 
CACHE_TYPE_UNIFIED 

Definition at line 118 of file intel_cacheinfo.c.

Function Documentation

unsigned int __cpuinit init_intel_cacheinfo ( struct cpuinfo_x86 c)

Definition at line 575 of file intel_cacheinfo.c.

Variable Documentation

unsigned short num_cache_leaves

Definition at line 167 of file intel_cacheinfo.c.