Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145243
b: refs/heads/master
c: 0af48f4
h: refs/heads/master
i:
  145241: 7257d2a
  145239: 1df1948
v: v3
  • Loading branch information
venkatesh.pallipadi@intel.com authored and H. Peter Anvin committed May 22, 2009
1 parent 11339ff commit ca285c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 0b827537e339c084ac9384df588969d400be9e0d
refs/heads/master: 0af48f42df15b97080b450d24219dd95db7b929a
8 changes: 7 additions & 1 deletion trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ static void cpa_flush_range(unsigned long start, int numpages, int cache)
}
}

static void wbinvd_local(void *unused)
{
wbinvd();
}

static void cpa_flush_array(unsigned long *start, int numpages, int cache,
int in_flags, struct page **pages)
{
Expand All @@ -219,7 +224,8 @@ static void cpa_flush_array(unsigned long *start, int numpages, int cache,
/* 4M threshold */
if (numpages >= 1024) {
if (boot_cpu_data.x86 >= 4)
wbinvd();
on_each_cpu(wbinvd_local, NULL, 1);

return;
}
/*
Expand Down

0 comments on commit ca285c3

Please sign in to comment.