|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 20/27] xen mtrr: Use specific cpu_has_foo macros inst
From: Mark McLoughlin <markmc@xxxxxxxxxx>
Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>
---
arch/x86/kernel/cpu/mtrr/xen.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/cpu/mtrr/xen.c b/arch/x86/kernel/cpu/mtrr/xen.c
index db3ef39..e03532c 100644
--- a/arch/x86/kernel/cpu/mtrr/xen.c
+++ b/arch/x86/kernel/cpu/mtrr/xen.c
@@ -44,15 +44,13 @@ static int __init xen_num_var_ranges(void)
void __init xen_init_mtrr(void)
{
- struct cpuinfo_x86 *c = &boot_cpu_data;
-
if (!xen_initial_domain())
return;
- if ((!cpu_has(c, X86_FEATURE_MTRR)) &&
- (!cpu_has(c, X86_FEATURE_K6_MTRR)) &&
- (!cpu_has(c, X86_FEATURE_CYRIX_ARR)) &&
- (!cpu_has(c, X86_FEATURE_CENTAUR_MCR)))
+ if (!cpu_has_mtrr &&
+ !cpu_has_k6_mtrr &&
+ !cpu_has_cyrix_arr &&
+ !cpu_has_centaur_mcr)
return;
mtrr_if = &xen_mtrr_ops;
--
1.6.0.6
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH 10/27] xen: make sure swiotlb allocationisphysically contigious, (continued)
- [Xen-devel] [PATCH 12/27] xen: add hooks for mapping phys<->bus addresses in swiotlb, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11/27] xen swiotlb: fixup swiotlb is chunks smaller than MAX_CONTIG_ORDER, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 16/27] swiotlb: use swiotlb_alloc_boot to allocate emergency pool, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 14/27] xen: enable swiotlb for xen domain 0., Jeremy Fitzhardinge
- [Xen-devel] [PATCH 17/27] xen/swiotlb: improve comment on gfp flags in xen_alloc_coherent(), Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/27] Xen/x86/PCI: Add support for the Xen PCI subsytem, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 19/27] xen: set callout_map to make mtrr work, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 18/27] xen/swiotlb: add sync functions, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 15/27] xen/swiotlb: use dma_alloc_from_coherent to get device coherent memory, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 20/27] xen mtrr: Use specific cpu_has_foo macros instead of generic cpu_has(),
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 24/27] xen mtrr: Kill some unneccessary includes, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 25/27] x86: define arch_vm_get_page_prot to set _PAGE_IOMAP on VM_IO vmas, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 26/27] agp: use more dma-ops-like operations for agp memory, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 21/27] xen mtrr: Use generic_validate_add_page(), Jeremy Fitzhardinge
- [Xen-devel] [PATCH 22/27] xen mtrr: Implement xen_get_free_region(), Jeremy Fitzhardinge
- [Xen-devel] [PATCH 23/27] xen mtrr: Add xen_{get, set}_mtrr() implementations, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 27/27] agp/intel: use dma_alloc_coherent for special cursor memory, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 13/27] xen/swiotlb: add hook for swiotlb_arch_range_needs_mapping, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 02/27] xen: Allow unprivileged Xen domains to create iomap pages, Jeremy Fitzhardinge
|
|
|
|
|