diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-09-24 08:53:33 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-10 19:29:18 +0200 |
commit | 9542ada803198e6eba29d3289abb39ea82047b92 (patch) | |
tree | 3a99406988d1e8643b91840614cfd3340408a42f /include/asm-x86/page.h | |
parent | ad5ca55f6bdb47c957b681c7358bb3719ba4ee82 (diff) | |
download | kernel-crypto-9542ada803198e6eba29d3289abb39ea82047b92.tar.gz kernel-crypto-9542ada803198e6eba29d3289abb39ea82047b92.tar.xz kernel-crypto-9542ada803198e6eba29d3289abb39ea82047b92.zip |
x86: track memtype for RAM in page struct
Track the memtype for RAM pages in page struct instead of using the
memtype list. This avoids the explosion in the number of entries in
memtype list (of the order of 20,000 with AGP) and makes the PAT
tracking simpler.
We are using PG_arch_1 bit in page->flags.
We still use the memtype list for non RAM pages.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r-- | include/asm-x86/page.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 49982110e4d..3407ac12ba3 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h @@ -57,6 +57,7 @@ typedef struct { pgdval_t pgd; } pgd_t; typedef struct { pgprotval_t pgprot; } pgprot_t; extern int page_is_ram(unsigned long pagenr); +extern int pagerange_is_ram(unsigned long start, unsigned long end); extern int devmem_is_allowed(unsigned long pagenr); extern void map_devmem(unsigned long pfn, unsigned long size, pgprot_t vma_prot); |