Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tsb.c File Reference
#include <linux/kernel.h>
#include <linux/preempt.h>
#include <linux/slab.h>
#include <asm/page.h>
#include <asm/tlbflush.h>
#include <asm/tlb.h>
#include <asm/mmu_context.h>
#include <asm/pgtable.h>
#include <asm/tsb.h>
#include <asm/oplib.h>

Go to the source code of this file.

Macros

#define HV_PGSZ_IDX_BASE   HV_PGSZ_IDX_8K
 
#define HV_PGSZ_MASK_BASE   HV_PGSZ_MASK_8K
 

Functions

void flush_tsb_kernel_range (unsigned long start, unsigned long end)
 
void flush_tsb_user (struct tlb_batch *tb)
 
void __init pgtable_cache_init (void)
 
void tsb_grow (struct mm_struct *mm, unsigned long tsb_index, unsigned long rss)
 
int init_new_context (struct task_struct *tsk, struct mm_struct *mm)
 
void destroy_context (struct mm_struct *mm)
 

Variables

struct tsb swapper_tsb [KERNEL_TSB_NENTRIES]
 
struct kmem_cache *pgtable_cache __read_mostly
 
int sysctl_tsb_ratio = -2
 

Macro Definition Documentation

#define HV_PGSZ_IDX_BASE   HV_PGSZ_IDX_8K

Definition at line 93 of file tsb.c.

#define HV_PGSZ_MASK_BASE   HV_PGSZ_MASK_8K

Definition at line 94 of file tsb.c.

Function Documentation

void destroy_context ( struct mm_struct mm)
inline

Definition at line 485 of file tsb.c.

void flush_tsb_kernel_range ( unsigned long  start,
unsigned long  end 
)

Definition at line 35 of file tsb.c.

void flush_tsb_user ( struct tlb_batch tb)

Definition at line 68 of file tsb.c.

int init_new_context ( struct task_struct tsk,
struct mm_struct mm 
)

Definition at line 428 of file tsb.c.

void __init pgtable_cache_init ( void  )

Definition at line 236 of file tsb.c.

void tsb_grow ( struct mm_struct mm,
unsigned long  tsb_index,
unsigned long  rss 
)

Definition at line 291 of file tsb.c.

Variable Documentation

struct kmem_cache* tsb_caches [8] __read_mostly

Definition at line 221 of file tsb.c.

int sysctl_tsb_ratio = -2

Definition at line 263 of file tsb.c.