Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cache-smp.c File Reference
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/threads.h>
#include <linux/interrupt.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/processor.h>
#include <asm/cacheflush.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/smp.h>
#include "cache-smp.h"

Go to the source code of this file.

Functions

 DEFINE_SPINLOCK (smp_cache_lock)
 
void smp_cache_interrupt (void)
 
void smp_cache_call (unsigned long opr_mask, unsigned long start, unsigned long end)
 

Function Documentation

DEFINE_SPINLOCK ( smp_cache_lock  )
void smp_cache_call ( unsigned long  opr_mask,
unsigned long  start,
unsigned long  end 
)

smp_cache_call - Issue an IPI to request the other CPUs flush caches : Cache operation flags : Start address of request : End address of request

Send cache flush IPI to other CPUs. This invokes smp_cache_interrupt() above on those other CPUs and then waits for them to finish.

The caller must hold smp_cache_lock.

Definition at line 91 of file cache-smp.c.

void smp_cache_interrupt ( void  )

smp_cache_interrupt - Handle IPI request to flush caches.

Handle a request delivered by IPI to flush the current CPU's caches. The parameters are stored in smp_cache_*.

Definition at line 37 of file cache-smp.c.