Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80542
b: refs/heads/master
c: cd8ddf1
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent 4dafbd0 commit 173e394
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af1e6844d60057774910a2d08bd75b67d73ba7d5
refs/heads/master: cd8ddf1a2800026dd58433333cce7a65cbc6c6d2
12 changes: 12 additions & 0 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,24 @@ within(unsigned long addr, unsigned long start, unsigned long end)
/*
* Flushing functions
*/


/**
* clflush_cache_range - flush a cache range with clflush
* @addr: virtual start address
* @size: number of bytes to flush
*
* clflush is an unordered instruction which needs fencing with mfence
* to avoid ordering issues.
*/
void clflush_cache_range(void *addr, int size)
{
int i;

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

static void __cpa_flush_all(void *arg)
Expand Down

0 comments on commit 173e394

Please sign in to comment.