Skip to content

Commit

Permalink
x86: cpa: move clflush_cache_range()
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent e64c8aa commit e81d5dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
#include <linux/slab.h>
#include <linux/mm.h>

void clflush_cache_range(void *addr, int size)
{
int i;

for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size)
clflush(addr+i);
}

#include <asm/processor.h>
#include <asm/tlbflush.h>
#include <asm/sections.h>
Expand Down Expand Up @@ -290,6 +282,14 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot)
}
EXPORT_SYMBOL(change_page_attr);

void clflush_cache_range(void *addr, int size)
{
int i;

for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size)
clflush(addr+i);
}

static void flush_kernel_map(void *arg)
{
/*
Expand Down

0 comments on commit e81d5dc

Please sign in to comment.