Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71968
b: refs/heads/master
c: a9c55b3
h: refs/heads/master
v: v3
  • Loading branch information
Keshavamurthy, Anil S authored and Linus Torvalds committed Oct 22, 2007
1 parent 8266552 commit af1dd25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 994a65e25df85abc465cfee495557200e8205f9e
refs/heads/master: a9c55b3ba8c3552d22155951e661767b3d424053
6 changes: 3 additions & 3 deletions trunk/arch/x86/mm/pageattr_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ static struct page *split_large_page(unsigned long address, pgprot_t prot,
return base;
}

static void cache_flush_page(void *adr)
void clflush_cache_range(void *adr, int size)
{
int i;
for (i = 0; i < PAGE_SIZE; i += boot_cpu_data.x86_clflush_size)
for (i = 0; i < size; i += boot_cpu_data.x86_clflush_size)
clflush(adr+i);
}

Expand All @@ -80,7 +80,7 @@ static void flush_kernel_map(void *arg)
asm volatile("wbinvd" ::: "memory");
else list_for_each_entry(pg, l, lru) {
void *adr = page_address(pg);
cache_flush_page(adr);
clflush_cache_range(adr, PAGE_SIZE);
}
__flush_tlb_all();
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
void global_flush_tlb(void);
int change_page_attr(struct page *page, int numpages, pgprot_t prot);
int change_page_attr_addr(unsigned long addr, int numpages, pgprot_t prot);
void clflush_cache_range(void *addr, int size);

#ifdef CONFIG_DEBUG_PAGEALLOC
/* internal debugging function */
Expand Down

0 comments on commit af1dd25

Please sign in to comment.