Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80541
b: refs/heads/master
c: af1e684
h: refs/heads/master
i:
  80539: afd0431
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent ae83a3d commit 4dafbd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 57a6a46aa26d6e39c62daf8b3b96e94f76e6846f
refs/heads/master: af1e6844d60057774910a2d08bd75b67d73ba7d5
4 changes: 2 additions & 2 deletions trunk/arch/x86/mm/pageattr-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static __init int exercise_pageattr(void)

}
vfree(bm);
global_flush_tlb();
cpa_flush_all();

failed += print_split(&sb);

Expand Down Expand Up @@ -211,7 +211,7 @@ static __init int exercise_pageattr(void)
}

}
global_flush_tlb();
cpa_flush_all();

failed += print_split(&sc);

Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void clflush_cache_range(void *addr, int size)
clflush(addr+i);
}

static void flush_kernel_map(void *arg)
static void __cpa_flush_all(void *arg)
{
/*
* Flush all to work around Errata in early athlons regarding
Expand All @@ -45,11 +45,11 @@ static void flush_kernel_map(void *arg)
wbinvd();
}

static void global_flush_tlb(void)
static void cpa_flush_all(void)
{
BUG_ON(irqs_disabled());

on_each_cpu(flush_kernel_map, NULL, 1, 1);
on_each_cpu(__cpa_flush_all, NULL, 1, 1);
}

struct clflush_data {
Expand Down Expand Up @@ -350,13 +350,13 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages,
/*
* On success we use clflush, when the CPU supports it to
* avoid the wbindv. If the CPU does not support it and in the
* error case we fall back to global_flush_tlb (which uses
* error case we fall back to cpa_flush_all (which uses
* wbindv):
*/
if (!ret && cpu_has_clflush)
cpa_flush_range(addr, numpages);
else
global_flush_tlb();
cpa_flush_all();

return ret;
}
Expand Down

0 comments on commit 4dafbd0

Please sign in to comment.